MVault 1.0.0
Simple c++ database
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 (const bool &isMultiMap) noexcept
 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 () noexcept
 Begin container method.
 
UnorderedMapIterator< KeyType, ValueTypeend () noexcept
 End container method.
 
UnorderedMapIterator< KeyType, ValueTypeBegin () noexcept
 Begin container method.
 
UnorderedMapIterator< KeyType, ValueTypeEnd () noexcept
 End container method.
 
bool IsMultiContainer () const noexcept
 The method to check if it is multi container.
 
std::pair< UnorderedMapIterator< KeyType, ValueType >, boolEmplace (EmplaceKeyType &&key, EmplaceValueType &&value) noexcept
 The method for inserting data into the Map.
 
std::pair< UnorderedMapIterator< KeyType, ValueType >, UnorderedMapIterator< KeyType, ValueType > > EqualRange (const KeyType &data) noexcept
 The method for getting range of data.
 
UnorderedMapIterator< KeyType, ValueTypeFind (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.
 
UnorderedMapIterator< KeyType, ValueTypeErase (const UnorderedMapIterator< KeyType, ValueType > &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.
 

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
 Multi container.
 
std::unordered_map< KeyType, ValueTypeDataMap
 Container.
 

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 ( const bool isMultiMap)
inlineexplicitnoexcept

Class constructor.

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

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