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/Map.h"
6 #include "GaudiKernel/Hash.h"
7 #include <unordered_map>
8 
9 namespace GaudiUtils
10 {
11  // ==========================================================================
73  template <typename K, typename T,
74  typename H = Hash<K>,
75  typename M = std::unordered_map<K,T,H>
76  >
77  class HashMap: public Map<K,T,M> {
78  public:
79  typedef H hasher;
80  inline hasher hash_funct() const { return this->m_map.hash_funct(); }
81  };
82 } // namespace GaudiUtils
83 
84 #endif // GAUDIKERNEL_GAUDIHASHMAP_H
map_type m_map
Definition: Map.h:106
hasher hash_funct() const
Definition: HashMap.h:80
KeyedObjectManager< hashmap > HashMap
Forward declaration of specialized std::hashmap-like object manager.
Forward declarations for the functions in SerializeSTL.h.
Definition: GaudiHistoID.h:139
KeyedObjectManager< map > Map
Forward declaration of specialized std::map-like object manager.