|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef IDENTIFIER_IDENTIFIER_H
6 #define IDENTIFIER_IDENTIFIER_H
8 #include "GaudiKernel/MsgStream.h"
69 void set (
const std::string&
id);
87 return id.get_compact();
141 return static_cast<size_t>(
id.get_compact());
void set(const std::string &id)
build from a string form - hexadecimal
Identifier & operator|=(value_type value)
Bitwise operations.
value_type mask_shift(value_type mask, size_type shift) const
extract field(s) by masking first, then shifting
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
size_t operator()(const Identifier &id) const
Identifier & operator&=(value_type value)
Identifier & set_literal(value_type value)
Set literal value.
bool is_valid() const
Check if id is in a valid state.
value_type m_id
The only data member.
Identifier(value_type value)
Identifier & operator=(const Identifier32 &old)
Assignment operators overloads.
void show() const
Print out in hex form.
void clear()
Reset to invalid state.
A get_compact functional for use in STL algorithms.
Identifier(Identifier32::value_type value)
Constructor from 32-bit value_type and int (to avoid common implicit conversions)
std::string getString() const
Provide a string form of the identifier - hexadecimal.
value_type operator()(const Identifier &id)
bool operator==(const Identifier &other) const =default
unsigned long long value_type
Identifier(const Identifier32 &other)
Constructor from Identifier32.
unsigned long long size_type
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
value_type extract(size_type shift, size_type mask) const
extract field from identifier (shift first, then mask)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Identifier()=default
Default constructor.
value_type extract(size_type shift) const
extract field, no mask