A 29bits (or 61bits) integer label with 3bits direction (eg, octant) packed into single label. More...
#include <labelBits.H>
Public Member Functions | |
| constexpr | labelBits () noexcept |
| Default construct as zero initialized. | |
| labelBits (const label val, const direction bits) | |
| Construct from components. | |
| labelBits (Istream &is) | |
| Read construct from Istream. | |
| label | data () const noexcept |
| The raw data value. | |
| label | val () const noexcept |
| Return the integer value. | |
| direction | bits () const noexcept |
| Return the octant direction. | |
| void | setVal (const label val) |
| Set the integer value. | |
| void | setBits (const direction bits) |
| Set the octant direction. | |
Static Public Member Functions | |
| static constexpr label | pack (const label val, const direction bits) noexcept |
| Pack integer value and bits (octant) into a label. | |
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.
|
inlineconstexprnoexcept |
Default construct as zero initialized.
Definition at line 105 of file labelBits.H.
References Foam::noexcept.
Referenced by operator!=, operator<<, operator==, and operator>>.

|
inline |
Construct from components.
Definition at line 113 of file labelBits.H.
References bits(), pack(), and val().

|
inlineexplicit |
Read construct from Istream.
Definition at line 121 of file labelBits.H.
|
inlinestaticconstexprnoexcept |
Pack integer value and bits (octant) into a label.
Definition at line 88 of file labelBits.H.
Referenced by labelBits(), setBits(), and setVal().


|
inlinenoexcept |
|
inlinenoexcept |
Return the integer value.
Definition at line 137 of file labelBits.H.
References Foam::noexcept.
Referenced by indexedOctreeBase::getContent(), indexedOctreeBase::getNode(), labelBits(), pack(), setBits(), and setVal().

|
inlinenoexcept |
Return the octant direction.
Definition at line 142 of file labelBits.H.
References Foam::noexcept.
Referenced by labelBits(), pack(), setBits(), and setVal().

|
inline |
Set the integer value.
Definition at line 147 of file labelBits.H.
References bits(), pack(), and val().

|
inline |
Set the octant direction.
Definition at line 155 of file labelBits.H.
References bits(), pack(), and val().

Definition at line 164 of file labelBits.H.
References b, and labelBits().
Definition at line 170 of file labelBits.H.
References b, and labelBits().
Definition at line 179 of file labelBits.H.
References labelBits(), and Foam::rhs().
Definition at line 185 of file labelBits.H.
References labelBits(), os(), and Foam::rhs().