Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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  // ==========================================================================
72  template <typename K, typename T, typename H = Hash<K>, typename M = std::unordered_map<K, T, H>>
73  class HashMap : public Map<K, T, M> {
74  public:
75  typedef H hasher;
76  inline hasher hash_funct() const { return this->m_map.hash_funct(); }
77  };
78 } // namespace GaudiUtils
79 
80 #endif // GAUDIKERNEL_GAUDIHASHMAP_H
Extension of the STL map.
Definition: Map.h:81
map_type m_map
Definition: Map.h:104
hasher hash_funct() const
Definition: HashMap.h:76
Forward declarations for the functions in SerializeSTL.h.
Definition: GaudiHistoID.h:136
Common class providing an architecture-independent hash map.
Definition: HashMap.h:73