Accelerated Computation Engine
Public Member Functions | List of all members
EMetaObject Class Reference

#include <emetaobject.h>

Inheritance diagram for EMetaObject:

Public Member Functions

EMetaObjectoperator= (const EMetaObject &object)
 
EMetadataoperator[] (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 ()
 

Detailed Description

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.

Member Function Documentation

◆ at()

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.

Parameters
keyKey of requested metadata object within the mapping of objects.
Returns
Copy of metadata object with given key.

◆ begin() [1/2]

QMap< QString, EMetadata >::iterator EMetaObject::begin ( )

Returns iterator to first metadata item in the mapping.

Returns
First metadata iterator.

◆ begin() [2/2]

QMap< QString, EMetadata >::const_iterator EMetaObject::begin ( ) const

Returns constant iterator to first metadata object in the mapping.

Returns
First metadata constant iterator.

◆ cbegin()

QMap< QString, EMetadata >::const_iterator EMetaObject::cbegin ( ) const

Returns constant iterator to first metadata object in the mapping.

Returns
First metadata constant iterator.

◆ cend()

QMap< QString, EMetadata >::const_iterator EMetaObject::cend ( ) const

Returns end of mapping constant iterator.

Returns
End of map constant iterator.

◆ clear()

void EMetaObject::clear ( )

Deletes all metadata values from the map making it an empty mapping.

◆ end() [1/2]

QMap< QString, EMetadata >::iterator EMetaObject::end ( )

Returns end of mapping iterator.

Returns
End of map iterator.

◆ end() [2/2]

QMap< QString, EMetadata >::const_iterator EMetaObject::end ( ) const

Returns end of mapping constant iterator.

Returns
End of map constant iterator.

◆ insert()

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.

Parameters
keyKey value where new metadata value will be mapped to.
valueThe new metadata value to be inserted into the mapping.

◆ isEmpty()

bool EMetaObject::isEmpty ( ) const

Tests if the mapping is empty or not.

Returns
Returns true of the mapping is empty else returns false.

◆ operator=()

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.

Parameters
objectMap that this object will be assigned to.
Returns
Reference to this object.

◆ operator[]() [1/2]

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.

Parameters
keyKey of requested metadata object within the mapping of objects.
Returns
Reference to metadata object.

◆ operator[]() [2/2]

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.

Parameters
keyKey of requested metadata object within the mapping of objects.
Returns
Copy of metadata object.

◆ size()

int EMetaObject::size ( ) const

Gets the size of the mapping.

Returns
Size of the map.

The documentation for this class was generated from the following files: