ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifierHash.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef IDENTIFIER_IDENTIFIERHASH_H
7#define IDENTIFIER_IDENTIFIERHASH_H
8
9#include "GaudiKernel/MsgStream.h"
50
51
52// Define a hash functional
53namespace std {
54 template<>
55 struct hash<IdentifierHash>{
56 size_t operator()(const IdentifierHash& id) const{
57 return static_cast<size_t>(id.value());
58 }
59 };
60}
61
63#endif // IDENTIFIER_IDENTIFIERHASH_H
This is a "hash" representation of an Identifier.
bool is_valid() const
Check if id is in a valid state.
static constexpr value_type m_max_value
default value, and indicator of invalid state
IdentifierHash(value_type value)
Initialization with value.
IdentifierHash()=default
Default methods.
IdentifierHash & operator=(value_type value)
Assignment operators.
value_type value() const
value_type m_value
IdentifierHash & operator-=(value_type value)
IdentifierHash & operator+=(value_type value)
unsigned int value_type
STL namespace.
size_t operator()(const IdentifierHash &id) const