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 56 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
NumericID m_nID
Internal numeric ID.
std::size_t hash_value(TupleID const &b)
Implicit 'move' constructor from a literal ID.
Definition at line 58 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
std::size_t hash_value(TupleID const &b)
LiteralID m_aID
Internal alpha-numeric ID.
Implicit 'copy' constructor from a literal ID.
Definition at line 60 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
std::size_t hash_value(TupleID const &b)
LiteralID m_aID
Internal alpha-numeric ID.
GaudiAlg::ID::ID |
( |
const char * |
id | ) |
|
|
inline |
Implicit constructor from a literal ID.
Definition at line 62 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
std::size_t hash_value(TupleID const &b)
LiteralID m_aID
Internal alpha-numeric ID.
size_t GaudiAlg::ID::__hash__ |
( |
| ) |
const |
|
inlinenoexcept |
return hash value (for python)
Definition at line 119 of file GaudiHistoID.h.
size_t hash() const noexcept
return hash value (for python)
Definition at line 29 of file GaudiHistoID.cpp.
NumericID numericID() const noexcept
Returns the numerical ID.
bool literal() const noexcept
Is this ID numeric.
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
bool numeric() const noexcept
Is this ID numeric.
size_t GaudiAlg::ID::hash |
( |
| ) |
const |
|
inlinenoexcept |
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 20 of file GaudiHistoID.cpp.
GAUDI_API std::ostream & fillStream(std::ostream &s) const
bool GaudiAlg::ID::literal |
( |
| ) |
const |
|
inlinenoexcept |
Is this ID numeric.
Definition at line 68 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
const LiteralID& GaudiAlg::ID::literalID |
( |
| ) |
const |
|
inlinenoexcept |
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 |
|
inlinenoexcept |
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.
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 |
|
inlinenoexcept |
good ID?
Definition at line 112 of file GaudiHistoID.h.
bool undefined() const noexcept
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 |
|
inlinenoexcept |
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 noexcept
Returns the numerical ID.
bool literal() const noexcept
Is this ID numeric.
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool numeric() const noexcept
Is this ID numeric.
bool GaudiAlg::ID::operator== |
( |
const ID & |
id | ) |
const |
|
inlinenoexcept |
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.
85 return hash() !=
id.hash()
NumericID numericID() const noexcept
Returns the numerical ID.
bool literal() const noexcept
Is this ID numeric.
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool numeric() const noexcept
Is this ID numeric.
size_t hash() const noexcept
return hash value (for python)
bool GaudiAlg::ID::undefined |
( |
| ) |
const |
|
inlinenoexcept |
Is this ID undefined.
Definition at line 70 of file GaudiHistoID.h.
bool literal() const noexcept
Is this ID numeric.
bool numeric() const noexcept
Is this ID numeric.
size_t GaudiAlg::ID::m_hash {0} |
|
private |
The documentation for this class was generated from the following files: