The Gaudi Framework
master (37c0b60a)
HashMap.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef GAUDIKERNEL_HASHMAP_H
12
#define GAUDIKERNEL_HASHMAP_H 1
13
14
// Include files
15
#include <
GaudiKernel/Hash.h
>
16
#include <
GaudiKernel/Map.h
>
17
#include <unordered_map>
18
19
namespace
GaudiUtils
{
20
// ==========================================================================
82
template
<
typename
K,
typename
T,
typename
H = Hash<K>,
typename
M = std::unordered_map<K, T, H>>
83
class
HashMap
:
public
Map
<K, T, M> {
84
public
:
85
typedef
H
hasher
;
86
inline
hasher
hash_funct
()
const
{
return
this->
m_map
.hash_funct(); }
87
};
88
}
// namespace GaudiUtils
89
90
#endif // GAUDIKERNEL_GAUDIHASHMAP_H
GaudiUtils::Map< K, T, std::unordered_map< K, T, Hash< K > > >::m_map
map_type m_map
Definition:
Map.h:114
GaudiUtils::HashMap::hash_funct
hasher hash_funct() const
Definition:
HashMap.h:86
GaudiUtils::HashMap::hasher
H hasher
Definition:
HashMap.h:85
GaudiUtils::Map
Definition:
Map.h:91
GaudiUtils::Hash
Definition:
Hash.h:103
Map.h
GaudiUtils::HashMap
Definition:
HashMap.h:83
GaudiUtils
Definition:
Allocator.h:72
Hash.h
GaudiKernel
include
GaudiKernel
HashMap.h
Generated on Thu Dec 19 2024 15:35:01 for The Gaudi Framework by
1.8.18