#include <IIndexedMap.hpp>
Public Member Functions | |
| virtual bool MQUALIFIER | deleteItemByIndex (Int iIndex)=0 |
| virtual bool MQUALIFIER | equals (const IIndexedMap< TKeyType, TValueType > &rIndexedMap) const =0 |
| virtual Int MQUALIFIER | getIndexByKey (const TKeyType &rKey)=0 |
| virtual const Int MQUALIFIER | getIndexByKeyConst (const TKeyType &rKey) const =0 |
| virtual TValueType &MQUALIFIER | getOrCreateItem (const TKeyType &rKey)=0 |
| virtual TValueType &MQUALIFIER | getValueByIndex (Int iIndex)=0 |
| virtual const TValueType &MQUALIFIER | getValueByIndexConst (Int iIndex) const =0 |
| virtual TKeyType MQUALIFIER | getKeyByIndex (Int iIndex)=0 |
| virtual const TKeyType MQUALIFIER | getKeyByIndexConst (Int iIndex) const =0 |
| virtual const IMap< TKeyType, TValueType > &MQUALIFIER | getMapConst () const =0 |
Protected Member Functions | |
| virtual IMapIterator< TKeyType, TValueType > *MQUALIFIER | getIterator ()=0 |
This interface defines a IndexedMap
| virtual bool MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::deleteItemByIndex | ( | Int | iIndex ) | [pure virtual] |
Deletes an item out of the map
| iIndex,: | List index |
| true,: | Item deleted |
| false,: | Could not delete item |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual bool MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::equals | ( | const IIndexedMap< TKeyType, TValueType > & | rIndexedMap ) | const [pure virtual] |
Checks if two indexedMaps are equal
| rIndexedMap,: | indexedMap to check |
| true,: | are equal |
| false,: | are not equal |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual Int MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getIndexByKey | ( | const TKeyType & | rKey ) | [pure virtual] |
Gets a copy of the list index by key
| rKey,: | Key value |
| Int,: | List index of item |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual const Int MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getIndexByKeyConst | ( | const TKeyType & | rKey ) | const [pure virtual] |
Gets a copy of the list index by key
| rKey,: | Key value |
| Int,: | List index of item |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual IMapIterator<TKeyType, TValueType>* MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getIterator | ( | ) | [protected, pure virtual] |
Hide the method to get a non const map iterator as protected.
Implements zeus::IMap< TKeyType, TValueType >.
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual TKeyType MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getKeyByIndex | ( | Int | iIndex ) | [pure virtual] |
Gets a key by index
| iIndex,: | list index |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual const TKeyType MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getKeyByIndexConst | ( | Int | iIndex ) | const [pure virtual] |
Gets a copy of a key by index
| iIndex,: | list index |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual const IMap<TKeyType, TValueType>& MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getMapConst | ( | ) | const [pure virtual] |
Gets a copy of the internal map
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual TValueType& MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getOrCreateItem | ( | const TKeyType & | rKey ) | [pure virtual] |
Gets or creates an item out of the map
| rKey | : Key of the item |
Implements zeus::IMap< TKeyType, TValueType >.
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual TValueType& MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getValueByIndex | ( | Int | iIndex ) | [pure virtual] |
Gets a value by index
| iIndex,: | list index |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.
| virtual const TValueType& MQUALIFIER zeus::IIndexedMap< TKeyType, TValueType >::getValueByIndexConst | ( | Int | iIndex ) | const [pure virtual] |
Gets a copy of a value by index
| iIndex,: | list index |
Implemented in zeus::TIndexedMap< TKeyType, TValueType >.