#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 >.
Referenced by BaseMap< Material, T >::Put().
◆ 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 |
Referenced by BaseStore< Sensor, T >::Contains(), BaseStore< Sensor, T >::ContainsId(), BaseStore< Sensor, T >::ContainsName(), BaseMap< Material, T >::Derived(), BaseStore< Sensor, T >::DerivedById(), BaseStore< Sensor, T >::DerivedByIndex(), BaseStore< Sensor, T >::DerivedByName(), BaseMap< Material, T >::Remove(), BaseStore< Sensor, T >::RemoveConstness(), and BaseStore< Sensor, T >::RemoveImpl().
◆ 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 >.
◆ 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 |
◆ map
Referenced by BaseMap< Material, T >::ContainsKey(), BaseMap< Material, T >::ContainsValue(), BaseMap< Material, T >::Derived(), BaseMap< Material, T >::DerivedByIndex(), BaseMap< Material, T >::IsValidIter(), BaseMap< Material, T >::Put(), BaseMap< Material, T >::Remove(), BaseMap< Material, T >::RemoveAll(), and BaseMap< Material, T >::Size().
The documentation for this class was generated from the following file: