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 46 of file GaudiHistoID.h.
Implicit constructor from a numeric ID.
Definition at line 29 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.
Implicit constructor from a literal ID.
Definition at line 37 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 45 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 119 of file GaudiHistoID.h.
size_t hash() const
return hash value (for python)
std::ostream & GaudiAlg::ID::fillStream |
( |
std::ostream & |
s | ) |
const |
Definition at line 60 of file GaudiHistoID.cpp.
64 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 117 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 51 of file GaudiHistoID.cpp.
53 std::ostringstream
s ;
GAUDI_API std::ostream & fillStream(std::ostream &s) const
bool GaudiAlg::ID::literal |
( |
| ) |
const |
|
inline |
Is this ID numeric.
Definition at line 68 of file GaudiHistoID.h.
68 {
return !
m_aID.empty() ; }
LiteralID m_aID
Internal alpha-numeric ID.
const LiteralID& GaudiAlg::ID::literalID |
( |
| ) |
const |
|
inline |
Returns the ID as a LiteralID.
Definition at line 72 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
bool GaudiAlg::ID::numeric |
( |
| ) |
const |
|
inline |
Is this ID numeric.
Definition at line 66 of file GaudiHistoID.h.
66 {
return -1 !=
m_nID ; }
NumericID m_nID
Internal numeric ID.
Returns the numerical ID.
Definition at line 74 of file GaudiHistoID.h.
NumericID m_nID
Internal numeric ID.
GaudiAlg::ID::operator std::string |
( |
| ) |
const |
|
inline |
cast operator to std::string
Definition at line 78 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 112 of file GaudiHistoID.h.
bool undefined() const
Is this ID undefined.
Implement the != operator, using the == operator.
Definition at line 92 of file GaudiHistoID.h.
92 {
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 97 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 83 of file GaudiHistoID.h.
86 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 70 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: