The Gaudi Framework  v30r3 (a5ef0a68)
HashMap.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_HASHMAP_H
2 #define GAUDIKERNEL_HASHMAP_H 1
3 
4 // Include files
5 #include "GaudiKernel/Hash.h"
6 #include "GaudiKernel/Map.h"
7 #include <unordered_map>
8 
9 namespace GaudiUtils
10 {
11  // ==========================================================================
73  template <typename K, typename T, typename H = Hash<K>, typename M = std::unordered_map<K, T, H>>
74  class HashMap : public Map<K, T, M>
75  {
76  public:
77  typedef H hasher;
78  inline hasher hash_funct() const { return this->m_map.hash_funct(); }
79  };
80 } // namespace GaudiUtils
81 
82 #endif // GAUDIKERNEL_GAUDIHASHMAP_H
Extension of the STL map.
Definition: Map.h:82
map_type m_map
Definition: Map.h:106
hasher hash_funct() const
Definition: HashMap.h:78
Forward declarations for the functions in SerializeSTL.h.
Definition: __init__.py:1
Common class providing an architecture-independent hash map.
Definition: HashMap.h:74