#include <HWIdentifier32.h>
Definition at line 14 of file HWIdentifier32.h.
◆ id_type
◆ size_type
◆ value_type
◆ HWIdentifier32() [1/5]
| HWIdentifier32::HWIdentifier32 |
( |
| ) |
|
|
inline |
◆ HWIdentifier32() [2/5]
| HWIdentifier32::HWIdentifier32 |
( |
value_type | value | ) |
|
|
inlineexplicit |
◆ HWIdentifier32() [3/5]
◆ HWIdentifier32() [4/5]
| HWIdentifier32::HWIdentifier32 |
( |
unsigned long long | value | ) |
|
|
inlineexplicit |
Constructor from a long value.
Definition at line 47 of file HWIdentifier32.h.
49{
50 bool hi = (
value >> 32);
51 bool lo = (
value << 32);
52 if (hi && lo) return;
53
54
55 if (hi) {
57 this->operator=(myid);
58 } else if (lo) {
60 this->operator=(myid);
61 } else {
63 this->operator=(myid);
64 }
65}
HWIdentifier32()
Default constructor.
◆ HWIdentifier32() [5/5]
| HWIdentifier32::HWIdentifier32 |
( |
const Identifier & | old | ) |
|
|
inlineexplicit |
◆ clear()
| void Identifier32::clear |
( |
| ) |
|
|
inlineinherited |
Reset to invalid state.
Definition at line 41 of file Identifier32.h.
static constexpr value_type m_maxValue
◆ get_compact()
◆ getString()
| std::string Identifier32::getString |
( |
| ) |
const |
|
inherited |
Provide a string form of the identifier - hexadecimal.
Definition at line 12 of file Identifier32.cxx.
12 {
13 std::string
s = std::format(
"0x{:x}",
m_id);
15}
◆ is_valid()
| bool Identifier32::is_valid |
( |
| ) |
const |
|
inlineinherited |
◆ operator std::string()
| Identifier32::operator std::string |
( |
| ) |
const |
|
inlineexplicitinherited |
Definition at line 59 of file Identifier32.h.
std::string getString() const
Provide a string form of the identifier - hexadecimal.
◆ operator&=()
◆ operator<=>()
| auto Identifier32::operator<=> |
( |
const Identifier32 & | | ) |
const |
|
defaultinherited |
◆ operator|=()
Bitwise operations.
Definition at line 68 of file Identifier32.h.
68 {
70 return (*this);
71}
◆ show()
| void Identifier32::show |
( |
| ) |
const |
|
inherited |
Print out in hex form.
Definition at line 17 of file Identifier32.cxx.
17 {
18 std::cout << *this;
19}
◆ m_id
◆ m_maxValue
|
|
staticconstexprprivateinherited |
The documentation for this class was generated from the following file: