#include <BaseStorage.hh>
◆ BaseMap()
◆ ~BaseMap()
◆ ContainsKey()
Determine if an elements is mapped to the given key.
- Parameters
-
[in] | _key | Key of the element in question |
- Returns
- True if an elements is mapped to the given key
Implements Map< T >.
◆ ContainsValue()
Determine if the given element exists in this map.
- Parameters
-
[in] | _value | Element in question |
- Returns
- True if the given element exists in this map
Implements Map< T >.
◆ Derived()
◆ DerivedByIndex()
BaseMap< T, U >::UPtr DerivedByIndex |
( |
unsigned int |
_index | ) |
const |
|
virtual |
◆ Get()
Get the element mapped to the given key.
- Parameters
-
[in] | _key | Key of the element in question |
- Returns
- The element mapped to the given key
Implements Map< T >.
◆ GetByIndex()
BaseMap< T, U >::TPtr GetByIndex |
( |
unsigned int |
_index | ) |
const |
|
virtual |
Get the element at the given index.
- Parameters
-
[in] | _index | Index of the element in question |
- Returns
- The element at the given index
Implements Map< T >.
◆ IsValidIter()
bool IsValidIter |
( |
ConstUIter |
_iter | ) |
const |
|
protectedvirtual |
◆ Put()
Map to given element to the given key. If the given key is already in use, no work will be done.
- Parameters
-
[in] | _key | Key of the new element |
[in] | _value | Element to be mapped |
- Returns
- True if successful
Implements Map< T >.
References string::empty(), std::endl(), and gzerr.
◆ Remove() [1/2]
Remove the element mapped to the given key. If the specified element does not exists, no work will be done.
- Parameters
-
[in] | _key | Key of the element in question |
Implements Map< T >.
◆ Remove() [2/2]
void Remove |
( |
TPtr |
_value | ) |
|
|
virtual |
Remove the given element. If the given element does not exist no work will be done.
- Parameters
-
[in] | _value | Key of the element in question |
Implements Map< T >.
◆ RemoveAll()
Remove all elements from this map.
Implements Map< T >.
◆ Size()
unsigned int Size |
( |
| ) |
const |
|
virtual |
Get the number of elements in this map.
- Returns
- The number of elements in this map
Implements Map< T >.
◆ map
The documentation for this class was generated from the following file: