MVault 1.0.0
Simple c++ database
|
Parent wrapper class for stl containers. More...
#include <Map.h>
Public Member Functions | |
Iterator | begin () noexcept |
Begin container method. | |
Iterator | end () noexcept |
End container method. | |
Iterator | Begin () noexcept |
Begin container method. | |
Iterator | End () noexcept |
End container method. | |
bool | IsMultiContainer () const noexcept |
The method to check if it is multi container. | |
template<class EmplaceKeyType , class EmplaceValueType > | |
std::pair< Iterator, bool > | Emplace (EmplaceKeyType &&key, EmplaceValueType &&value) noexcept |
The method for inserting data into the Map. | |
std::pair< Iterator, Iterator > | EqualRange (const KeyType &data) noexcept |
The method for getting range of data. | |
Iterator | Find (const KeyType &data) noexcept |
The method for getting iterator with key. | |
std::size_t | Erase (const KeyType &data) noexcept |
The method for erase data from Map with key. | |
Iterator | Erase (const Iterator &dataIt) noexcept |
The method for erase data from Map with iterator. | |
void | Clear () noexcept |
The method for clear Map. | |
std::size_t | Size () noexcept |
The method for get Map size. | |
Protected Attributes | |
bool | IsMultiMap = false |
Is this multi map. | |
MultiContainer | DataMultiMap |
Multi container. | |
Container | DataMap |
Container. | |
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 |
|
inlinenoexcept |
Begin container method.
The need for the container to support foreach loops
|
inlinenoexcept |
Begin container method.
|
inlinenoexcept |
The method for inserting data into the Map.
<EmplaceKeyType> | - Key type |
<EmplaceValueType> | - Value type |
[in] | key | rvalue to key |
[in] | value | rvlaue to value |
|
inlinenoexcept |
End container method.
The need for the container to support foreach loops
|
inlinenoexcept |
End container method.
|
inlinenoexcept |
The method for getting range of data.
[in] | data | key to find |
|
inlinenoexcept |
The method for erase data from Map with iterator.
[in] | dataIt | iterator to erase |
|
inlinenoexcept |
The method for erase data from Map with key.
[in] | data | key to erase |
|
inlinenoexcept |
The method for getting iterator with key.
[in] | data | key to find |
|
inlinenoexcept |
The method to check if it is multi container.
|
inlinenoexcept |