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 43 of file GaudiHistoID.h.
◆ LiteralID
◆ NumericID
◆ ID() [1/4]
Implicit constructor from a numeric ID.
Definition at line 54 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)
◆ ID() [2/4]
Implicit 'move' constructor from a literal ID.
Definition at line 56 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.
◆ ID() [3/4]
Implicit 'copy' 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.
◆ ID() [4/4]
| GaudiAlg::ID::ID |
( |
const char * |
id | ) |
|
|
inline |
Implicit 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.
◆ ~ID()
◆ __hash__()
| size_t GaudiAlg::ID::__hash__ |
( |
| ) |
const |
|
inlinenoexcept |
return hash value (for python)
Definition at line 115 of file GaudiHistoID.h.
size_t hash() const noexcept
return hash value (for python)
◆ fillStream()
Definition at line 28 of file GaudiHistoID.cpp.
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
NumericID numericID() const noexcept
Returns the numerical ID.
bool literal() const noexcept
Is this ID numeric.
bool numeric() const noexcept
Is this ID numeric.
◆ hash()
| size_t GaudiAlg::ID::hash |
( |
| ) |
const |
|
inlinenoexcept |
return hash value (for python)
Definition at line 113 of file GaudiHistoID.h.
size_t m_hash
the hash value of ID
◆ idAsString()
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
◆ literal()
| bool GaudiAlg::ID::literal |
( |
| ) |
const |
|
inlinenoexcept |
Is this ID numeric.
Definition at line 66 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
◆ literalID()
| const LiteralID& GaudiAlg::ID::literalID |
( |
| ) |
const |
|
inlinenoexcept |
Returns the ID as a LiteralID.
Definition at line 70 of file GaudiHistoID.h.
LiteralID m_aID
Internal alpha-numeric ID.
◆ numeric()
| bool GaudiAlg::ID::numeric |
( |
| ) |
const |
|
inlinenoexcept |
Is this ID numeric.
Definition at line 64 of file GaudiHistoID.h.
64 {
return -1 !=
m_nID; }
NumericID m_nID
Internal numeric ID.
◆ numericID()
Returns the numerical ID.
Definition at line 72 of file GaudiHistoID.h.
NumericID m_nID
Internal numeric ID.
◆ operator std::string()
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.
◆ operator!()
| bool GaudiAlg::ID::operator! |
( |
| ) |
const |
|
inlinenoexcept |
good ID?
Definition at line 108 of file GaudiHistoID.h.
bool undefined() const noexcept
Is this ID undefined.
◆ operator!=()
Implement the != operator, using the == operator.
Definition at line 89 of file GaudiHistoID.h.
89 {
return !( *
this == id ); }
◆ operator<()
| 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 94 of file GaudiHistoID.h.
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
NumericID numericID() const noexcept
Returns the numerical ID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool literal() const noexcept
Is this ID numeric.
bool numeric() const noexcept
Is this ID numeric.
◆ operator==()
| 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 81 of file GaudiHistoID.h.
82 return hash() !=
id.hash()
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
NumericID numericID() const noexcept
Returns the numerical ID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool literal() const noexcept
Is this ID numeric.
size_t hash() const noexcept
return hash value (for python)
bool numeric() const noexcept
Is this ID numeric.
◆ undefined()
| bool GaudiAlg::ID::undefined |
( |
| ) |
const |
|
inlinenoexcept |
Is this ID undefined.
Definition at line 68 of file GaudiHistoID.h.
bool literal() const noexcept
Is this ID numeric.
bool numeric() const noexcept
Is this ID numeric.
◆ m_aID
◆ m_hash
| size_t GaudiAlg::ID::m_hash {0} |
|
private |
◆ m_nID
The documentation for this class was generated from the following files: