Accelerated Computation Engine
|
#include <emetaobject.h>
Public Member Functions | |
EMetaObject & | operator= (const EMetaObject &object) |
EMetadata & | operator[] (const QString &key) |
EMetadata | operator[] (const QString &key) const |
bool | isEmpty () const |
int | size () const |
QMap< QString, EMetadata >::iterator | begin () |
QMap< QString, EMetadata >::const_iterator | begin () const |
QMap< QString, EMetadata >::const_iterator | cbegin () const |
QMap< QString, EMetadata >::iterator | end () |
QMap< QString, EMetadata >::const_iterator | end () const |
QMap< QString, EMetadata >::const_iterator | cend () const |
EMetadata | at (const QString &key) const |
void | insert (const QString &key, const EMetadata &value) |
void | clear () |
This holds a mapping of metadata objects. It inherits from Qt so it is copy on write. The mapping is done using strings. Each unique key can only hold a single metadata value. Refer to EMetadata for more information about the metadata system.
EMetadata EMetaObject::at | ( | const QString & | key | ) | const |
Returns copy of metadata object with given key within the mapping of metadata objects. If the key does not exist a new null metadata value will be created and returned.
key | Key of requested metadata object within the mapping of objects. |
QMap< QString, EMetadata >::iterator EMetaObject::begin | ( | ) |
Returns iterator to first metadata item in the mapping.
QMap< QString, EMetadata >::const_iterator EMetaObject::begin | ( | ) | const |
Returns constant iterator to first metadata object in the mapping.
QMap< QString, EMetadata >::const_iterator EMetaObject::cbegin | ( | ) | const |
Returns constant iterator to first metadata object in the mapping.
QMap< QString, EMetadata >::const_iterator EMetaObject::cend | ( | ) | const |
Returns end of mapping constant iterator.
void EMetaObject::clear | ( | ) |
Deletes all metadata values from the map making it an empty mapping.
QMap< QString, EMetadata >::iterator EMetaObject::end | ( | ) |
Returns end of mapping iterator.
QMap< QString, EMetadata >::const_iterator EMetaObject::end | ( | ) | const |
Returns end of mapping constant iterator.
void EMetaObject::insert | ( | const QString & | key, |
const EMetadata & | value | ||
) |
Inserts a new metadata value to the mapping with the given key. If a metadata value already exists with the given key it will be overwritten with the new given value.
key | Key value where new metadata value will be mapped to. |
value | The new metadata value to be inserted into the mapping. |
bool EMetaObject::isEmpty | ( | ) | const |
Tests if the mapping is empty or not.
EMetaObject & EMetaObject::operator= | ( | const EMetaObject & | object | ) |
Assign this mapping to the one given. The map will not be copied until a write operation is performed.
object | Map that this object will be assigned to. |
EMetadata & EMetaObject::operator[] | ( | const QString & | key | ) |
Returns reference to metadata object with the given key. If no metadata object is mapped to the given key a new null metadata object is created, mapped with the given key, and returned as the reference.
key | Key of requested metadata object within the mapping of objects. |
EMetadata EMetaObject::operator[] | ( | const QString & | key | ) | const |
Returns copy of metadata object with the given key. If no metadata object is mapped to the given key a new null metadata object is created and returned.
key | Key of requested metadata object within the mapping of objects. |
int EMetaObject::size | ( | ) | const |
Gets the size of the mapping.