#include <GaudiAlg/GaudiHistoID.h>
Public Types | |
| typedef int | NumericID |
| type for internal numeric ID | |
| typedef std::string | LiteralID |
| type for internal literal ID | |
Public Member Functions | |
| ID (const NumericID id=-1) | |
| Implicit constructor from a numeric ID. | |
| ID (const LiteralID &id) | |
| Implicit constructor from a literal ID. | |
| ID (const char *id) | |
| Implicit constructor from a char *. | |
| ~ID () | |
| Destructor. | |
| bool | numeric () const |
| Is this ID numeric. | |
| bool | literal () const |
| Is this ID numeric. | |
| bool | undefined () const |
| Is this ID undefined. | |
| const LiteralID & | literalID () const |
| Returns the ID as a LiteralID. | |
| NumericID | numericID () const |
| Returns the numerical ID. | |
| ID & | operator++ () |
| Operator ++ (prefix). | |
| ID | operator++ (int) |
| Operator ++(int) (postfix). | |
| ID & | operator-- () |
| Operator -- (prefix). | |
| ID | operator-- (int) |
| Operator --(int) (postfix). | |
| LiteralID | idAsString () const |
| Return ID as string, for both numeric and literal IDs. | |
| operator std::string () const | |
| cast operator to std::striqng | |
| bool | operator== (const ID &id) const |
| Implement the operator == Implementation depends on type of ID. | |
| bool | operator!= (const ID &id) const |
| Implement the != operator, using the == operator. | |
| bool | operator< (const ID &id) const |
| Implement the operator < Implementation depends on type of ID. | |
Private Attributes | |
| NumericID | m_nID |
| Internal numeric ID. | |
| LiteralID | m_aID |
| Internal alpha-numeric ID. | |
Internally handles both numeric and string like IDs
Definition at line 42 of file GaudiHistoID.h.
| typedef int GaudiAlg::ID::NumericID |
| typedef std::string GaudiAlg::ID::LiteralID |
| GaudiAlg::ID::ID | ( | const NumericID | id = -1 |
) | [inline] |
| GaudiAlg::ID::ID | ( | const LiteralID & | id | ) | [inline] |
| GaudiAlg::ID::ID | ( | const char * | id | ) | [inline] |
| GaudiAlg::ID::~ID | ( | ) | [inline] |
| bool GaudiAlg::ID::numeric | ( | ) | const [inline] |
| bool GaudiAlg::ID::literal | ( | ) | const [inline] |
| bool GaudiAlg::ID::undefined | ( | ) | const [inline] |
| const LiteralID& GaudiAlg::ID::literalID | ( | ) | const [inline] |
| NumericID GaudiAlg::ID::numericID | ( | ) | const [inline] |
| ID& GaudiAlg::ID::operator++ | ( | ) | [inline] |
Operator ++ (prefix).
Definition at line 71 of file GaudiHistoID.h.
| ID GaudiAlg::ID::operator++ | ( | int | ) | [inline] |
Operator ++(int) (postfix).
Definition at line 79 of file GaudiHistoID.h.
00080 { 00081 const ID retID = *this; 00082 this->operator++(); 00083 return retID; 00084 }
| ID& GaudiAlg::ID::operator-- | ( | ) | [inline] |
Operator -- (prefix).
Definition at line 88 of file GaudiHistoID.h.
| ID GaudiAlg::ID::operator-- | ( | int | ) | [inline] |
Operator --(int) (postfix).
Definition at line 96 of file GaudiHistoID.h.
00097 { 00098 const ID retID = *this; 00099 this->operator--(); 00100 return retID; 00101 }
| GaudiAlg::ID::LiteralID GaudiAlg::ID::idAsString | ( | ) | const |
| GaudiAlg::ID::operator std::string | ( | ) | const [inline] |
cast operator to std::striqng
Definition at line 105 of file GaudiHistoID.h.
00105 { return idAsString () ; }
| bool GaudiAlg::ID::operator== | ( | const ID & | id | ) | const [inline] |
Implement the operator == Implementation depends on type of ID.
Definition at line 110 of file GaudiHistoID.h.
00111 { 00112 return ( numeric() && id.numeric() ? id.numericID() == numericID() : 00113 ( literal() && id.literal() ? id.literalID() == literalID() : 00114 id.idAsString() == idAsString() ) ); 00115 }
| bool GaudiAlg::ID::operator!= | ( | const ID & | id | ) | const [inline] |
Implement the != operator, using the == operator.
Definition at line 117 of file GaudiHistoID.h.
00118 { 00119 return ! this->operator==(id); 00120 }
| bool GaudiAlg::ID::operator< | ( | const ID & | id | ) | const [inline] |
Implement the operator < Implementation depends on type of ID.
Definition at line 125 of file GaudiHistoID.h.
00126 { 00127 return ( numeric() && id.numeric() ? this->numericID() < id.numericID() : 00128 ( literal() && id.literal() ? this->literalID() < id.literalID() : 00129 this->idAsString() < id.idAsString() ) ); 00130 }
NumericID GaudiAlg::ID::m_nID [private] |
LiteralID GaudiAlg::ID::m_aID [private] |
1.4.7