ID class for Histogram and Ntuples.
More...
#include <GaudiAlg/GaudiHistoID.h>
ID class for Histogram and Ntuples.
Internally handles both numeric and string like IDs
- Author
- Chris Jones Chris.nosp@m.toph.nosp@m.er.Ro.nosp@m.b.Jo.nosp@m.nes@c.nosp@m.ern..nosp@m.ch
- Date
- 2005-08-12
Definition at line 44 of file GaudiHistoID.h.
Implicit constructor from a numeric ID.
Definition at line 26 of file GaudiHistoID.cpp.
size_t m_hash
the hash value of ID
NumericID m_nID
Internal numeric ID.
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
Implicit constructor from a literal ID.
Definition at line 33 of file GaudiHistoID.cpp.
size_t m_hash
the hash value of ID
NumericID m_nID
Internal numeric ID.
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
LiteralID m_aID
Internal alpha-numeric ID.
GaudiAlg::ID::ID |
( |
const char * |
id | ) |
|
Implicit constructor from a literal ID.
Definition at line 41 of file GaudiHistoID.cpp.
size_t m_hash
the hash value of ID
NumericID m_nID
Internal numeric ID.
std::size_t hash_value(const Gaudi::StringKey &key)
hash-function: heeded for boost::hash
LiteralID m_aID
Internal alpha-numeric ID.
size_t GaudiAlg::ID::__hash__ |
( |
| ) |
const |
|
inline |
return hash value (for python)
Definition at line 117 of file GaudiHistoID.h.
size_t hash() const
return hash value (for python)
Definition at line 56 of file GaudiHistoID.cpp.
60 else { s <<
"UNDEFINED" ; }
NumericID numericID() const
Returns the numerical ID.
const LiteralID & literalID() const
Returns the ID as a LiteralID.
bool literal() const
Is this ID numeric.
bool numeric() const
Is this ID numeric.
size_t GaudiAlg::ID::hash |
( |
| ) |
const |
|
inline |
return hash value (for python)
Definition at line 115 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
Return ID as string, for both numeric and literal IDs.
Definition at line 47 of file GaudiHistoID.cpp.
GAUDI_API std::ostream & fillStream(std::ostream &s) const
bool GaudiAlg::ID::literal |
( |
| ) |
const |
|
inline |
Is this ID numeric.
Definition at line 66 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
const LiteralID& GaudiAlg::ID::literalID |
( |
| ) |
const |
|
inline |
Returns the ID as a LiteralID.
Definition at line 70 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
bool GaudiAlg::ID::numeric |
( |
| ) |
const |
|
inline |
Is this ID numeric.
Definition at line 64 of file GaudiHistoID.h.
64 {
return -1 !=
m_nID ; }
NumericID m_nID
Internal numeric ID.
Returns the numerical ID.
Definition at line 72 of file GaudiHistoID.h.
NumericID m_nID
Internal numeric ID.
cast operator to std::string
Definition at line 76 of file GaudiHistoID.h.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool GaudiAlg::ID::operator! |
( |
| ) |
const |
|
inline |
good ID?
Definition at line 110 of file GaudiHistoID.h.
bool undefined() const
Is this ID undefined.
Implement the != operator, using the == operator.
Definition at line 90 of file GaudiHistoID.h.
90 {
return ! ( *
this == id ) ; }
bool GaudiAlg::ID::operator< |
( |
const ID & |
id | ) |
const |
|
inline |
Implement the operator < Implementation depends on type of ID.
- Returns
- boolean indicating the order of the IDs
Definition at line 95 of file GaudiHistoID.h.
NumericID numericID() const
Returns the numerical ID.
const LiteralID & literalID() const
Returns the ID as a LiteralID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool literal() const
Is this ID numeric.
bool numeric() const
Is this ID numeric.
bool GaudiAlg::ID::operator== |
( |
const ID & |
id | ) |
const |
|
inline |
Implement the operator == Implementation depends on type of ID.
- Returns
- boolean indicating if the IDs are equal
Definition at line 81 of file GaudiHistoID.h.
84 hash () !=
id.hash () ?
false :
size_t hash() const
return hash value (for python)
NumericID numericID() const
Returns the numerical ID.
const LiteralID & literalID() const
Returns the ID as a LiteralID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool literal() const
Is this ID numeric.
bool numeric() const
Is this ID numeric.
bool GaudiAlg::ID::undefined |
( |
| ) |
const |
|
inline |
Is this ID undefined.
Definition at line 68 of file GaudiHistoID.h.
bool literal() const
Is this ID numeric.
bool numeric() const
Is this ID numeric.
size_t GaudiAlg::ID::m_hash |
|
private |
The documentation for this class was generated from the following files: