BOSS 7.1.0
BESIII Offline Software System
|
#include <Identifier.h>
Public Types | |
typedef Identifier | id_type |
typedef unsigned int | value_type |
typedef unsigned int | size_type |
Public Member Functions | |
Identifier () | |
Default constructor. | |
Identifier (value_type value) | |
Constructor from value_type. | |
Identifier (const Identifier &other) | |
Copy constructor. | |
Identifier & | operator= (value_type value) |
Assignment operator. | |
Identifier & | operator|= (value_type value) |
Bitwise operations. | |
Identifier & | operator&= (value_type value) |
void | set (const std::string &id) |
build from a string form - hexadecimal | |
void | clear () |
Reset to invalid state. | |
operator value_type (void) const | |
value_type | get_value () const |
bool | operator== (const Identifier &other) const |
bool | operator!= (const Identifier &other) const |
bool | operator< (const Identifier &other) const |
bool | operator> (const Identifier &other) const |
bool | is_valid () const |
Check if id is in a valid state. | |
std::string | getString () const |
Provide a string form of the identifier - hexadecimal. | |
void | show () const |
Print out in hex form. | |
Identifier is a simple type-safe 32 bit unsigned integer. An Identifier relies on other classes to encode and decode its information.
The default constructor created an Identifier an invalid state which can be check with the "is_valid" method to allow some error checking.
Definition at line 20 of file Identifier.h.
typedef Identifier Identifier::id_type |
typedef unsigned int Identifier::size_type |
Definition at line 28 of file Identifier.h.
typedef unsigned int Identifier::value_type |
Definition at line 27 of file Identifier.h.
|
inline |
Default constructor.
Definition at line 110 of file Identifier.h.
|
inlineexplicit |
Constructor from value_type.
Definition at line 121 of file Identifier.h.
|
inline |
Copy constructor.
Definition at line 115 of file Identifier.h.
|
inline |
Reset to invalid state.
Definition at line 152 of file Identifier.h.
Referenced by RecEmcCluster::Clear(), RecEmcShower::Clear(), RecEmcTofHit::Clear(), BhabhaPreSelect::execute(), DigammaPreSelect::execute(), EmcRecNeighbor::GetNeighbors(), EmcRecNeighbor::GetNextNeighbors(), RecEmcDigit::RecEmcDigit(), and RecEmcHit::RecEmcHit().
|
inline |
Definition at line 163 of file Identifier.h.
Referenced by MdcTrack::storeTrack(), TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapOnlineMode().
std::string Identifier::getString | ( | ) | const |
Provide a string form of the identifier - hexadecimal.
Definition at line 17 of file Identifier.cxx.
Referenced by operator<<().
|
inline |
Check if id is in a valid state.
Definition at line 198 of file Identifier.h.
Referenced by EmcRec::execute().
|
inline |
|
inline |
Definition at line 178 of file Identifier.h.
|
inline |
Definition at line 145 of file Identifier.h.
|
inline |
Definition at line 184 of file Identifier.h.
|
inline |
Assignment operator.
Definition at line 131 of file Identifier.h.
|
inline |
|
inline |
Definition at line 192 of file Identifier.h.
|
inline |
Bitwise operations.
Definition at line 138 of file Identifier.h.
void Identifier::set | ( | const std::string & | id | ) |
void Identifier::show | ( | ) | const |
Print out in hex form.
Definition at line 30 of file Identifier.cxx.