Accelerated Computation Engine
|
#include <emetaarray.h>
Public Member Functions | |
EMetaArray & | operator= (const EMetaArray &object) |
EMetadata & | operator[] (int index) |
const EMetadata & | operator[] (int index) const |
EMetaArray & | operator<< (const EMetadata &value) |
bool | isEmpty () const |
int | size () const |
QList< EMetadata >::iterator | begin () |
QList< EMetadata >::const_iterator | begin () const |
QList< EMetadata >::const_iterator | cbegin () const |
QList< EMetadata >::iterator | end () |
QList< EMetadata >::const_iterator | end () const |
QList< EMetadata >::const_iterator | cend () const |
const EMetadata & | at (int index) const |
void | insert (int index, const EMetadata &value) |
void | append (const EMetadata &value) |
void | clear () |
This holds a list of metadata objects. It inherits from Qt so it is copy on write. Refer to EMetadata for more information about the metadata system.
void EMetaArray::append | ( | const EMetadata & | value | ) |
Appends a new metadata value to the end of the array.
value | The new metadata value to be appended to the end of the array. |
const EMetadata & EMetaArray::at | ( | int | index | ) | const |
Returns constant reference to metadata object with given index within the array of metadata objects. If the index is beyond the scope of the array then Qt will force exit the program.
index | Index of requested metadata object within the array of objects. |
QList< EMetadata >::iterator EMetaArray::begin | ( | ) |
Returns iterator to first metadata item in the array.
QList< EMetadata >::const_iterator EMetaArray::begin | ( | ) | const |
Returns constant iterator to first metadata object in the array.
QList< EMetadata >::const_iterator EMetaArray::cbegin | ( | ) | const |
Returns constant iterator to first metadata object in the array.
QList< EMetadata >::const_iterator EMetaArray::cend | ( | ) | const |
Returns end of array constant iterator.
void EMetaArray::clear | ( | ) |
Deletes all metadata values from the array making it an empty array.
QList< EMetadata >::iterator EMetaArray::end | ( | ) |
Returns end of array iterator.
QList< EMetadata >::const_iterator EMetaArray::end | ( | ) | const |
Returns end of array constant iterator.
void EMetaArray::insert | ( | int | index, |
const EMetadata & | value | ||
) |
Inserts a new metadata value to the array at the given index of the array. If the index is less than or equal to 0 it is prepended to the array. If the index is greater than or equal to the size of the array it is appended to the list.
index | Index where new metadata value will be inserted. |
value | The new metadata value to be inserted into the array. |
bool EMetaArray::isEmpty | ( | ) | const |
Tests if the array is empty or not.
EMetaArray & EMetaArray::operator<< | ( | const EMetadata & | value | ) |
Appends a new metadata value to the end of the array.
value | The new metadata value to be appended to the end of the array. |
EMetaArray & EMetaArray::operator= | ( | const EMetaArray & | object | ) |
Assign this array to the one given. The array will not be copied until a write operation is performed.
object | Array that this object will be assigned to. |
EMetadata & EMetaArray::operator[] | ( | int | index | ) |
Returns reference to metadata object with the given index. If the index is out of range of the array then Qt will force exit the program.
index | Index of requested metadata object within the array. |
const EMetadata & EMetaArray::operator[] | ( | int | index | ) | const |
Returns constant reference to metadata object with the given index. If the index is out of range of the array then Qt will force exit the program.
index | Index of requested metadata object within the array. |
int EMetaArray::size | ( | ) | const |
Gets the size of the array.