MVault 0.0.1
|
Parent wrapper class for stl containers. More...
#include <Map.h>
Public Member Functions | |
Iterator | begin () |
Begin container method. | |
Iterator | end () |
End container method. | |
Iterator | Begin () |
Begin container method. | |
Iterator | End () |
End container method. | |
template<class EmplaceKeyType , class EmplaceValueType > | |
std::pair< Iterator, bool > | Emplace (EmplaceKeyType &&key, EmplaceValueType &&value) |
The method for inserting data into the Map. | |
std::pair< Iterator, Iterator > | EqualRange (const KeyType &data) |
The method for getting range of data. | |
Iterator | Find (const KeyType &data) |
The method for getting iterator with key. | |
std::size_t | Erase (const KeyType &data) |
The method for erase data from Map with key. | |
Iterator | Erase (const Iterator &dataIt) |
The method for erase data from Map with iterator. | |
void | Clear () |
The method for clear Map. | |
std::size_t | Size () |
The method for get Map size. | |
Protected Attributes | |
bool | IsMultiMap = false |
Is this multi map. | |
MultiContainer | DataMultiMap |
Container | DataMap |
Parent wrapper class for stl containers.
This class is needed to provide the same interface to std::unordered_map and std::unordered_multimap, and for std::map and std::multimap. At one point in time, this class stores data either in a multi-container or in a regular one.
<MultiContainer> | - A class for a multi container |
<Container> | - A class for a container |
<Iterator> | - A class for a ParentMap iterator |
<KeyType> | - A class for a container and multi container key type |
<ValueType> | - A class for a container and multi container value type |
|
inline |
Begin container method.
The need for the container to support foreach loops
|
inline |
Begin container method.
|
inline |
The method for inserting data into the Map.
<EmplaceKeyType> | - Key type |
<EmplaceValueType> | - Value type |
[in] | key | rvalue to key |
[in] | value | rvlaue to value |
|
inline |
End container method.
The need for the container to support foreach loops
|
inline |
End container method.
|
inline |
The method for getting range of data.
[in] | data | key to find |
|
inline |
The method for erase data from Map with iterator.
[in] | dataIt | iterator to erase |
|
inline |
The method for erase data from Map with key.
[in] | data | key to erase |
|
inline |
The method for getting iterator with key.
[in] | data | key to find |
|
inline |