A 29bits (or 61bits) integer label with 3bits direction (eg, octant) packed into single label. More...
Public Member Functions | |
constexpr | labelBits () noexcept |
Default construct as zero initialized. More... | |
labelBits (const label val, const direction bits) | |
Construct from components. More... | |
labelBits (Istream &is) | |
Read construct from Istream. More... | |
label | data () const noexcept |
The raw data value. More... | |
label | val () const noexcept |
Return the integer value. More... | |
direction | bits () const noexcept |
Return the octant direction. More... | |
void | setVal (const label val) |
Set the integer value. More... | |
void | setBits (const direction bits) |
Set the octant direction. More... | |
Static Public Member Functions | |
static constexpr label | pack (const label val, const direction bits) noexcept |
Pack integer value and bits (octant) into a label. More... | |
Friends | |
bool | operator== (const labelBits &a, const labelBits &b) |
bool | operator!= (const labelBits &a, const labelBits &b) |
Istream & | operator>> (Istream &is, labelBits &rhs) |
Ostream & | operator<< (Ostream &os, const labelBits &rhs) |
A 29bits (or 61bits) integer label with 3bits direction (eg, octant) packed into single label.
Definition at line 48 of file labelBits.H.
|
inlinenoexcept |
Default construct as zero initialized.
Definition at line 105 of file labelBits.H.
Construct from components.
Definition at line 113 of file labelBits.H.
Read construct from Istream.
Definition at line 121 of file labelBits.H.
|
inlinestaticnoexcept |
Pack integer value and bits (octant) into a label.
Definition at line 89 of file labelBits.H.
References labelBits::bits(), and labelBits::val().
Referenced by labelBits::setBits(), and labelBits::setVal().
|
inlinenoexcept |
The raw data value.
Definition at line 132 of file labelBits.H.
|
inlinenoexcept |
Return the integer value.
Definition at line 137 of file labelBits.H.
Referenced by indexedOctreeBase::getContent(), indexedOctreeBase::getNode(), labelBits::pack(), labelBits::setBits(), and labelBits::setVal().
|
inlinenoexcept |
Return the octant direction.
Definition at line 142 of file labelBits.H.
Referenced by labelBits::pack(), labelBits::setBits(), and labelBits::setVal().
|
inline |
Set the integer value.
Definition at line 147 of file labelBits.H.
References labelBits::bits(), labelBits::pack(), and labelBits::val().
|
inline |
Set the octant direction.
Definition at line 155 of file labelBits.H.
References labelBits::bits(), labelBits::pack(), and labelBits::val().
Definition at line 164 of file labelBits.H.
Definition at line 170 of file labelBits.H.
Definition at line 179 of file labelBits.H.
Definition at line 185 of file labelBits.H.