|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef IDENTIFIER_IDENTIFIER_H
6 #define IDENTIFIER_IDENTIFIER_H
9 #define IDENTIFIER_TYPE unsigned long long
10 #define IDENTIFIER_DIFF_TYPE long long
11 #define IDENTIFIER_PCODE "ll"
13 #include "GaudiKernel/MsgStream.h"
16 #include <boost/io/ios_state.hpp>
100 void set (
const std::string&
id);
125 return id.get_compact();
209 return static_cast<size_t>(
id.get_compact());
IDENTIFIER_TYPE value_type
bool operator>(const Identifier &other) const
A get_compact functional for use in STL algorithms.
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
size_t operator()(const Identifier &id) const
Identifier & operator&=(value_type value)
Identifier & set_literal(value_type value)
Set literal value.
Identifier(Identifier &&other)=default
Default Move constructor.
bool is_valid() const
Check if id is in a valid state.
Identifier(value_type value)
Additional ctors Constructor from value_type.
bool operator>=(const Identifier &other) const
Identifier & operator=(Identifier &&old)=default
Default Move Assignment operator.
bool operator<(const Identifier &other) const
#define IDENTIFIER_DIFF_TYPE
Identifier & operator=(const Identifier &old)=default
Default Assignment operators.
value_type operator()(const Identifier &id)
void show() const
Print out in hex form.
void clear()
Reset to invalid state.
bool operator==(const Identifier &other) const
Identifier(Identifier32::value_type value)
Constructor from 32-bit value_type and int (to avoid common implicit conversions)
Identifier(const Identifier &other)=default
Default Copy constructor.
std::string getString() const
Provide a string form of the identifier - hexadecimal.
value_type get_compact(void) const
Get the compact id.
bool operator!=(const Identifier &other) const
bool operator<=(const Identifier &other) const
IDENTIFIER_TYPE size_type
Identifier(const Identifier32 &other)
Constructor from Identifier32.
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
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_DIFF_TYPE diff_type
Identifier()=default
Default constructor.
value_type extract(size_type shift) const
extract field, no mask
~Identifier()=default
Default dtor.