Go to the documentation of this file.
22 #ifndef __hashMap_hpp__
23 #define __hashMap_hpp__
25 #include <unordered_map>
35 template<
class Key,
class T,
class Hash = std::hash<Key> >
38 public std::unordered_map<Key, T, Hash>
46 using hasher =
typename hashmapType::hasher;
48 using iterator =
typename hashmapType::iterator;
56 using initList =
typename std::initializer_list<T>;
58 using keyType =
typename hashmapType::key_type;
93 return makeUnique<hashMapType>(*
this);
114 const std::pair<constIterator, bool>
findIf(
const keyType& k)
const;
typename hashmapType::value_type valueType
typename hashmapType::mapped_type mappedType
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
typename hashmapType::hasher hasher
TypeInfoTemplateNV11("hashMap", Key)
std::pair< iterator, bool > findIf(const keyType &k)
typename hashmapType::iterator iterator
uniquePtr< hashMapType > clone() const
bool search(const keyType k) const
typename hashmapType::reference reference
std::unordered_map< void *, T, std::hash< void * > > hashmapType
typename hashmapType::const_reference constReference
hashMap< Key, T, Hash > hashMapType
hashMapType & operator=(const hashMapType &rhs)=default
typename std::initializer_list< T > initList
Interface class for any output stream.
typename hashmapType::key_type keyType
typename hashmapType::const_iterator constIterator
bool insertIf(const keyType &k, const mappedType &v)