CGEM BOSS 6.6.5.i
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) |
virtual void | set (const std::string &id) |
build from a string form - hexadecimal | |
virtual void | clear () |
Reset to invalid state. | |
operator value_type (void) const | |
value_type | get_value () const |
virtual bool | operator== (const Identifier &other) const |
virtual bool | operator!= (const Identifier &other) const |
virtual bool | operator< (const Identifier &other) const |
virtual bool | operator> (const Identifier &other) const |
virtual bool | is_valid () const |
Check if id is in a valid state. | |
virtual std::string | getString () const |
Provide a string form of the identifier - hexadecimal. | |
virtual 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.
unsigned int Identifier::size_type |
Definition at line 28 of file Identifier.h.
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.
|
inlinevirtual |
Reset to invalid state.
Definition at line 152 of file Identifier.h.
Referenced by RecEmcCluster::Clear(), RecEmcShower::Clear(), RecEmcTofHit::Clear(), BhabhaPreSelect::execute(), DigammaPreSelect::execute(), RecEmcDigit::RecEmcDigit(), and RecEmcHit::RecEmcHit().
|
inline |
Definition at line 163 of file Identifier.h.
Referenced by BesRawDataWriter::SaveCgemDigits(), MdcTrack::storeTrack(), HoughFinder::storeTracks(), TofRawDataProvider::tofDataMapFull(), TofRawDataProvider::tofDataMapOnlineMode(), and CgemMdcFitAlg::updateTracks().
|
virtual |
Provide a string form of the identifier - hexadecimal.
Definition at line 17 of file Identifier.cxx.
Referenced by operator<<(), and show().
|
inlinevirtual |
Check if id is in a valid state.
Definition at line 198 of file Identifier.h.
Referenced by EmcRec::execute().
|
inline |
|
inlinevirtual |
Definition at line 178 of file Identifier.h.
|
inline |
Definition at line 145 of file Identifier.h.
|
inlinevirtual |
Definition at line 184 of file Identifier.h.
|
inline |
Assignment operator.
Definition at line 131 of file Identifier.h.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 192 of file Identifier.h.
|
inline |
Bitwise operations.
Definition at line 138 of file Identifier.h.
|
virtual |
|
virtual |
Print out in hex form.
Definition at line 30 of file Identifier.cxx.