#include <HWIdentifier.h>
Definition at line 13 of file HWIdentifier.h.
◆ bit_defs
| typedef enum Identifier::bit_defs_enum Identifier::bit_defs |
|
inherited |
◆ diff_type
| using Identifier::diff_type = long long |
|
inherited |
◆ id_type
◆ max_value_type
| typedef enum Identifier::max_value_type_enum Identifier::max_value_type |
|
inherited |
◆ size_type
| using Identifier::size_type = unsigned long long |
|
inherited |
◆ value_type [1/2]
| using Identifier::value_type = unsigned long long |
|
inherited |
◆ value_type [2/2]
| typedef Long64_t Identifier::value_type |
|
inherited |
◆ bit_defs_enum
| enum Identifier::bit_defs_enum |
|
inherited |
◆ max_value_type
| enum Identifier::max_value_type |
|
privateinherited |
◆ max_value_type_enum
| enum Identifier::max_value_type_enum |
|
inherited |
◆ HWIdentifier() [1/5]
| HWIdentifier::HWIdentifier |
( |
| ) |
|
|
default |
◆ HWIdentifier() [2/5]
◆ HWIdentifier() [3/5]
| HWIdentifier::HWIdentifier |
( |
const Identifier & | old | ) |
|
|
inlineexplicit |
◆ HWIdentifier() [4/5]
◆ HWIdentifier() [5/5]
| HWIdentifier::HWIdentifier |
( |
int | value | ) |
|
|
inlineexplicit |
◆ clear()
| void Identifier::clear |
( |
| ) |
|
|
inherited |
◆ extract() [1/2]
◆ extract() [2/2]
extract field from identifier (shift first, then mask)
◆ get_compact()
◆ get_identifier32()
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
◆ getString()
| std::string Identifier::getString |
( |
| ) |
const |
|
inherited |
Provide a string form of the identifier - hexadecimal.
Definition at line 25 of file Identifier.cxx.
25 {
26 return std::format("0x{:0x}", m_id);
27}
◆ is_valid()
| bool Identifier::is_valid |
( |
| ) |
const |
|
inherited |
Check if id is in a valid state.
◆ mask_shift()
extract field(s) by masking first, then shifting
◆ operator value_type()
◆ operator!=() [1/2]
| bool Identifier::operator!= |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator!=() [2/2]
| bool Identifier::operator!= |
( |
Identifier::value_type | other | ) |
const |
|
inlineinherited |
◆ operator&=()
◆ operator<()
| bool Identifier::operator< |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator<=()
| bool Identifier::operator<= |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator<=>()
| auto Identifier::operator<=> |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator==() [1/6]
| bool Identifier::operator== |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator==() [2/6]
| bool Identifier::operator== |
( |
const Identifier & | other | ) |
const |
|
defaultinherited |
◆ operator==() [3/6]
◆ operator==() [4/6]
| bool Identifier::operator== |
( |
Identifier::value_type | other | ) |
const |
|
inlineinherited |
◆ operator==() [5/6]
| bool Identifier::operator== |
( |
int | other | ) |
const |
|
inherited |
◆ operator==() [6/6]
| bool Identifier::operator== |
( |
value_type | other | ) |
const |
|
inherited |
Comparison operators with value_type.
This is a hack, only because GeoAdaptors/GeoMuonHits wants to to compare explicitly with 0 as a test of whether the identifier has been constructed properly. But is_valid() here compares with max_value, not 0, since presumably it is possible to have a zero value - just not in muons.
◆ operator>()
| bool Identifier::operator> |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator>=()
| bool Identifier::operator>= |
( |
const Identifier & | other | ) |
const |
|
inlineinherited |
◆ operator|=()
◆ set()
| void Identifier::set |
( |
const std::string & | id | ) |
|
|
inherited |
build from a string form - hexadecimal
Definition at line 12 of file Identifier.cxx.
12 {
13 const auto start = id.data();
14 const auto end = start + id.size();
15 static constexpr int base = 16;
16
17 const auto [p,ec] = std::from_chars(start+2, end, m_id,
base);
18 if (ec != std::errc()){
19 throw std::runtime_error("Number was not parsed in Identifier::set");
20 }
21}
◆ set_literal()
◆ show()
| void Identifier::show |
( |
| ) |
const |
|
inherited |
Print out in hex form.
Definition at line 30 of file Identifier.cxx.
30 {
33}
std::string getString() const
Provide a string form of the identifier - hexadecimal.
◆ ALL_BITS
◆ m_id
◆ MAX_BIT
◆ NBITS
| unsigned int Identifier::NBITS = sizeof(value_type) * 8 |
|
staticconstexprinherited |
The documentation for this class was generated from the following file: