BOSS 7.0.4
BESIII Offline Software System
|
#include <Identifier.h>
Public Types | |
typedef Identifier | id_type |
typedef unsigned int | value_type |
typedef unsigned int | size_type |
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 () | |
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 DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
typedef Identifier Identifier::id_type |
Definition at line 26 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
typedef Identifier Identifier::id_type |
Definition at line 26 of file InstallArea/include/Identifier/Identifier/Identifier.h.
typedef unsigned int Identifier::size_type |
Definition at line 28 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
typedef unsigned int Identifier::size_type |
Definition at line 28 of file InstallArea/include/Identifier/Identifier/Identifier.h.
typedef unsigned int Identifier::value_type |
Definition at line 27 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
typedef unsigned int Identifier::value_type |
Definition at line 27 of file InstallArea/include/Identifier/Identifier/Identifier.h.
|
inline |
Default constructor.
Definition at line 110 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
|
inlineexplicit |
Constructor from value_type.
Definition at line 121 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
|
inline |
Copy constructor.
Definition at line 115 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
|
explicit |
Constructor from value_type.
Identifier::Identifier | ( | const Identifier & | other | ) |
Copy constructor.
|
inline |
Reset to invalid state.
Definition at line 152 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Referenced by RecEmcCluster::Clear(), RecEmcShower::Clear(), RecEmcTofHit::Clear(), BhabhaPreSelect::execute(), DigammaPreSelect::execute(), EmcRecNeighbor::GetNeighbors(), EmcRecNeighbor::GetNextNeighbors(), RecEmcDigit::RecEmcDigit(), and RecEmcHit::RecEmcHit().
void Identifier::clear | ( | ) |
Reset to invalid state.
|
inline |
Definition at line 163 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Referenced by MdcTrack::storeTrack(), TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapOnlineMode().
value_type Identifier::get_value | ( | ) | const |
std::string Identifier::getString | ( | ) | const |
Provide a string form of the identifier - hexadecimal.
Definition at line 17 of file Identifier.cxx.
Referenced by operator<<().
std::string Identifier::getString | ( | ) | const |
|
inline |
Check if id is in a valid state.
Definition at line 198 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Referenced by EmcRec::execute().
bool Identifier::is_valid | ( | ) | const |
|
inline |
Get the value
Definition at line 158 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Identifier::operator value_type | ( | void | ) | const |
|
inline |
Definition at line 178 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
bool Identifier::operator!= | ( | const Identifier & | other | ) | const |
|
inline |
Definition at line 145 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Identifier & Identifier::operator&= | ( | value_type | value | ) |
|
inline |
Definition at line 184 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
bool Identifier::operator< | ( | const Identifier & | other | ) | const |
|
inline |
Assignment operator.
Definition at line 131 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Identifier & Identifier::operator= | ( | value_type | value | ) |
|
inline |
Definition at line 171 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
bool Identifier::operator== | ( | const Identifier & | other | ) | const |
|
inline |
Definition at line 192 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
bool Identifier::operator> | ( | const Identifier & | other | ) | const |
|
inline |
Bitwise operations.
Definition at line 138 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/Identifier.h.
Identifier & Identifier::operator|= | ( | value_type | value | ) |
Bitwise operations.
void Identifier::set | ( | const std::string & | id | ) |
void Identifier::set | ( | const std::string & | id | ) |
build from a string form - hexadecimal
void Identifier::show | ( | ) | const |
Print out in hex form.
Definition at line 30 of file Identifier.cxx.
void Identifier::show | ( | ) | const |
Print out in hex form.