ATLAS Offline Software
|
#include <Identifier32.h>
Public Types | |
using | id_type = Identifier32 |
using | value_type = unsigned int |
using | size_type = unsigned int |
Public Member Functions | |
Identifier32 ()=default | |
Identifier32 (value_type value) | |
Constructor from value_type (unsigned int) More... | |
Identifier32 & | operator|= (value_type value) |
Bitwise operations. More... | |
Identifier32 & | operator&= (value_type value) |
void | clear () |
Reset to invalid state. More... | |
value_type | get_compact () const |
Get the compact id. More... | |
auto | operator (const Identifier32 &) const =default |
bool | is_valid () const |
Check if id is in a valid state. More... | |
std::string | getString () const |
Provide a string form of the identifier - hexadecimal. More... | |
void | show () const |
Print out in hex form. More... | |
operator std::string () const | |
Private Attributes | |
value_type | m_id {m_maxValue} |
Static Private Attributes | |
static constexpr value_type | m_maxValue {0xFFFFFFFF} |
Identifier32 is a simple type-safe 32 bit unsigned integer. An Identifier32 relies on other classes - IdHelpers - to encode and decode its information.
The default constructor creates an Identifier32 in an invalid state which can be used to check with the "is_valid" method to allow some error checking.
Definition at line 25 of file Identifier32.h.
using Identifier32::id_type = Identifier32 |
Definition at line 27 of file Identifier32.h.
using Identifier32::size_type = unsigned int |
Definition at line 29 of file Identifier32.h.
using Identifier32::value_type = unsigned int |
Definition at line 28 of file Identifier32.h.
|
default |
|
inlineexplicit |
Constructor from value_type (unsigned int)
Definition at line 34 of file Identifier32.h.
|
inline |
|
inline |
std::string Identifier32::getString | ( | ) | const |
Provide a string form of the identifier - hexadecimal.
Definition at line 12 of file Identifier32.cxx.
|
inline |
|
default |
|
inlineexplicit |
Definition at line 59 of file Identifier32.h.
|
inline |
Definition at line 74 of file Identifier32.h.
|
inline |
Bitwise operations.
Definition at line 68 of file Identifier32.h.
void Identifier32::show | ( | ) | const |
Print out in hex form.
Definition at line 17 of file Identifier32.cxx.
|
private |
Definition at line 63 of file Identifier32.h.
|
staticconstexprprivate |
Definition at line 62 of file Identifier32.h.