![]() |
The Gaudi Framework
v26r3
|
ID class for Histogram and Ntuples. More...
#include <GaudiAlg/GaudiHistoID.h>
Public Types | |
typedef int | NumericID |
type for internal numeric ID More... | |
typedef std::string | LiteralID |
type for internal literal ID More... | |
typedef int | NumericID |
type for internal numeric ID More... | |
typedef std::string | LiteralID |
type for internal literal ID More... | |
Public Member Functions | |
ID (const NumericID id=-1) | |
Implicit constructor from a numeric ID. More... | |
ID (const LiteralID &id) | |
Implicit constructor from a literal ID. More... | |
ID (const char *id) | |
Implicit constructor from a literal ID. More... | |
~ID () | |
Destructor. More... | |
bool | numeric () const |
Is this ID numeric. More... | |
bool | literal () const |
Is this ID numeric. More... | |
bool | undefined () const |
Is this ID undefined. More... | |
const LiteralID & | literalID () const |
Returns the ID as a LiteralID. More... | |
NumericID | numericID () const |
Returns the numerical ID. More... | |
GAUDI_API LiteralID | idAsString () const |
Return ID as string, for both numeric and literal IDs. More... | |
operator std::string () const | |
cast operator to std::string More... | |
bool | operator== (const ID &id) const |
Implement the operator == Implementation depends on type of ID. More... | |
bool | operator!= (const ID &id) const |
Implement the != operator, using the == operator. More... | |
bool | operator< (const ID &id) const |
Implement the operator < Implementation depends on type of ID. More... | |
GAUDI_API std::ostream & | fillStream (std::ostream &s) const |
bool | operator! () const |
good ID? More... | |
size_t | hash () const |
return hash value (for python) More... | |
size_t | __hash__ () const |
return hash value (for python) More... | |
ID (const NumericID id=-1) | |
Implicit constructor from a numeric ID. More... | |
ID (const LiteralID &id) | |
Implicit constructor from a literal ID. More... | |
ID (const char *id) | |
Implicit constructor from a literal ID. More... | |
~ID () | |
Destructor. More... | |
bool | numeric () const |
Is this ID numeric. More... | |
bool | literal () const |
Is this ID numeric. More... | |
bool | undefined () const |
Is this ID undefined. More... | |
const LiteralID & | literalID () const |
Returns the ID as a LiteralID. More... | |
NumericID | numericID () const |
Returns the numerical ID. More... | |
GAUDI_API LiteralID | idAsString () const |
Return ID as string, for both numeric and literal IDs. More... | |
operator std::string () const | |
cast operator to std::string More... | |
bool | operator== (const ID &id) const |
Implement the operator == Implementation depends on type of ID. More... | |
bool | operator!= (const ID &id) const |
Implement the != operator, using the == operator. More... | |
bool | operator< (const ID &id) const |
Implement the operator < Implementation depends on type of ID. More... | |
GAUDI_API std::ostream & | fillStream (std::ostream &s) const |
bool | operator! () const |
good ID? More... | |
size_t | hash () const |
return hash value (for python) More... | |
size_t | __hash__ () const |
return hash value (for python) More... | |
Private Attributes | |
NumericID | m_nID |
Internal numeric ID. More... | |
LiteralID | m_aID |
Internal alpha-numeric ID. More... | |
size_t | m_hash |
the hash value of ID More... | |
ID class for Histogram and Ntuples.
Internally handles both numeric and string like IDs
Definition at line 46 of file GaudiHistoID.h.
typedef std::string GaudiAlg::ID::LiteralID |
type for internal literal ID
Definition at line 53 of file GaudiHistoID.h.
typedef std::string GaudiAlg::ID::LiteralID |
type for internal literal ID
Definition at line 53 of file GaudiHistoID.h.
typedef int GaudiAlg::ID::NumericID |
type for internal numeric ID
Definition at line 51 of file GaudiHistoID.h.
typedef int GaudiAlg::ID::NumericID |
type for internal numeric ID
Definition at line 51 of file GaudiHistoID.h.
GaudiAlg::ID::ID | ( | const NumericID | id = -1 | ) |
Implicit constructor from a numeric ID.
Definition at line 29 of file GaudiHistoID.cpp.
GaudiAlg::ID::ID | ( | const LiteralID & | id | ) |
Implicit constructor from a literal ID.
Definition at line 37 of file GaudiHistoID.cpp.
GaudiAlg::ID::ID | ( | const char * | id | ) |
Implicit constructor from a literal ID.
Definition at line 45 of file GaudiHistoID.cpp.
|
inline |
GaudiAlg::ID::ID | ( | const char * | id | ) |
Implicit constructor from a literal ID.
|
inline |
|
inline |
|
inline |
GAUDI_API std::ostream& GaudiAlg::ID::fillStream | ( | std::ostream & | s | ) | const |
std::ostream & GaudiAlg::ID::fillStream | ( | std::ostream & | s | ) | const |
Definition at line 60 of file GaudiHistoID.cpp.
|
inline |
|
inline |
GaudiAlg::ID::LiteralID GaudiAlg::ID::idAsString | ( | ) | const |
Return ID as string, for both numeric and literal IDs.
Definition at line 51 of file GaudiHistoID.cpp.
Return ID as string, for both numeric and literal IDs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
cast operator to std::string
Definition at line 78 of file GaudiHistoID.h.
|
inline |
cast operator to std::string
Definition at line 78 of file GaudiHistoID.h.
|
inline |
|
inline |
|
inline |
Implement the != operator, using the == operator.
Definition at line 92 of file GaudiHistoID.h.
|
inline |
Implement the != operator, using the == operator.
Definition at line 92 of file GaudiHistoID.h.
|
inline |
Implement the operator < Implementation depends on type of ID.
Definition at line 97 of file GaudiHistoID.h.
|
inline |
Implement the operator < Implementation depends on type of ID.
Definition at line 97 of file GaudiHistoID.h.
|
inline |
Implement the operator == Implementation depends on type of ID.
Definition at line 83 of file GaudiHistoID.h.
|
inline |
Implement the operator == Implementation depends on type of ID.
Definition at line 83 of file GaudiHistoID.h.
|
inline |
|
inline |
|
private |
Internal alpha-numeric ID.
Definition at line 126 of file GaudiHistoID.h.
|
private |
the hash value of ID
Definition at line 131 of file GaudiHistoID.h.
|
private |
Internal numeric ID.
Definition at line 124 of file GaudiHistoID.h.