|
ACF $AcfVersion:0$
|
Generic interface for a key/value mapping. More...
#include <TIMap.h>
Public Types | |
| typedef Key | KeyType |
| typedef Value | ValueType |
| typedef QSet< KeyType > | Keys |
Public Member Functions | |
| virtual int | GetElementsCount () const =0 |
| Get number of elements. | |
| virtual ValueType & | operator[] (const KeyType &key)=0 |
| Element access operator. | |
| virtual const ValueType & | operator[] (const KeyType &key) const =0 |
| Element access operator. | |
| virtual int | FindIndex (const KeyType &key) const =0 |
| Find index index of specified key. | |
| virtual const ValueType * | FindElement (const KeyType &key) const =0 |
| Find value element associated with specified key. | |
| virtual void | GetKeys (Keys &result, bool doAppend=false) const =0 |
| Get list of keys stored in this map. | |
| virtual const KeyType & | GetKeyAt (int index) const =0 |
| Get key value at specified index. | |
| virtual const ValueType & | GetValueAt (int index) const =0 |
| Get mapped value at specified index. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Generic interface for a key/value mapping.
| typedef QSet<KeyType> istd::TIMap< Key, Value >::Keys |
| typedef Key istd::TIMap< Key, Value >::KeyType |
| typedef Value istd::TIMap< Key, Value >::ValueType |
|
pure virtual |
Find value element associated with specified key.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Find index index of specified key.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Get number of elements.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Get key value at specified index.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Get list of keys stored in this map.
| doAppend | if it is true, list of keys will be appended to existing key list. |
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Get mapped value at specified index.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Element access operator.
If key object not exists, it will be automatically created.
Implemented in istd::TCascadedMap< Key, Value >.
|
pure virtual |
Element access operator.
If key object not exists, it will be automatically created.
Implemented in istd::TCascadedMap< Key, Value >.