MVault 0.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mvlt::UnorderedMap< KeyType, ValueType > Class Template Reference

The descendant of the ParentMap class, which stores the unordered_map, i.e. the hash table. More...

#include <Map.h>

Inheritance diagram for mvlt::UnorderedMap< KeyType, ValueType >:
Inheritance graph
[legend]
Collaboration diagram for mvlt::UnorderedMap< KeyType, ValueType >:
Collaboration graph
[legend]

Public Member Functions

 UnorderedMap (bool isMultiMap)
 Class constructor.
 
- Public Member Functions inherited from mvlt::ParentMap< std::unordered_multimap< KeyType, ValueType >, std::unordered_map< KeyType, ValueType >, UnorderedMapIterator< KeyType, ValueType >, KeyType, ValueType >
UnorderedMapIterator< KeyType, ValueTypebegin ()
 Begin container method.
 
UnorderedMapIterator< KeyType, ValueTypeend ()
 End container method.
 
UnorderedMapIterator< KeyType, ValueTypeBegin ()
 Begin container method.
 
UnorderedMapIterator< KeyType, ValueTypeEnd ()
 End container method.
 
std::pair< UnorderedMapIterator< KeyType, ValueType >, boolEmplace (EmplaceKeyType &&key, EmplaceValueType &&value)
 The method for inserting data into the Map.
 
std::pair< UnorderedMapIterator< KeyType, ValueType >, UnorderedMapIterator< KeyType, ValueType > > EqualRange (const KeyType &data)
 The method for getting range of data.
 
UnorderedMapIterator< KeyType, ValueTypeFind (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.
 
UnorderedMapIterator< KeyType, ValueTypeErase (const UnorderedMapIterator< KeyType, ValueType > &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.
 

Additional Inherited Members

- Protected Attributes inherited from mvlt::ParentMap< std::unordered_multimap< KeyType, ValueType >, std::unordered_map< KeyType, ValueType >, UnorderedMapIterator< KeyType, ValueType >, KeyType, ValueType >
bool IsMultiMap
 Is this multi map.
 
std::unordered_multimap< KeyType, ValueTypeDataMultiMap
 
std::unordered_map< KeyType, ValueTypeDataMap
 

Detailed Description

template<class KeyType, class ValueType>
class mvlt::UnorderedMap< KeyType, ValueType >

The descendant of the ParentMap class, which stores the unordered_map, i.e. the hash table.

Constructor & Destructor Documentation

◆ UnorderedMap()

template<class KeyType , class ValueType >
mvlt::UnorderedMap< KeyType, ValueType >::UnorderedMap ( bool  isMultiMap)
inline

Class constructor.

Parameters
[in]isMultiMapis this UnorderedMap store data in std::unordered_multimap

The documentation for this class was generated from the following file: