ATLAS Offline Software
Control
Navigation
Navigation
NavigationTokenHash.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5
*/
15
#ifndef NAVIGATION_NAVIGATIONTOKENHASH_H
16
#define NAVIGATION_NAVIGATIONTOKENHASH_H
17
18
19
#include <functional>
20
21
38
inline
39
std::size_t
navigationHash
(
const
void
*
p
)
40
{
41
return
std::hash<const void*>() (
p
);
42
}
43
44
45
template
<
typename
CHILD>
46
struct
NavigationTokenHash
47
{
48
std::size_t
operator()
(
const
CHILD*
p
)
const
49
{
50
return
navigationHash
(
p
);
51
}
52
};
53
54
55
56
#endif // not NAVIGATION_NAVIGATIONTOKENHASH_H
navigationHash
std::size_t navigationHash(const void *p)
Allow overriding the default hash function used within NavigationToken.
Definition:
NavigationTokenHash.h:39
NavigationTokenHash
Definition:
NavigationTokenHash.h:47
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
NavigationTokenHash::operator()
std::size_t operator()(const CHILD *p) const
Definition:
NavigationTokenHash.h:48
Generated on Wed Jan 8 2025 21:14:50 for ATLAS Offline Software by
1.8.18