labelBits Class Reference

A 29bits label and 3bits direction packed into single label. More...

Public Member Functions

 labelBits ()
 Construct null. More...
 
 labelBits (const label val, const direction bits)
 Construct from components. More...
 
 labelBits (Istream &is)
 Construct from Istream. More...
 
label val () const
 
direction bits () const
 
void setVal (const label val)
 
void setBits (const direction bits)
 

Friends

bool operator== (const labelBits &a, const labelBits &b)
 
bool operator!= (const labelBits &a, const labelBits &b)
 
Istreamoperator>> (Istream &is, labelBits &lb)
 
Ostreamoperator<< (Ostream &os, const labelBits &lb)
 

Detailed Description

A 29bits label and 3bits direction packed into single label.

Source files

Definition at line 51 of file labelBits.H.

Constructor & Destructor Documentation

◆ labelBits() [1/3]

labelBits ( )
inline

Construct null.

Definition at line 78 of file labelBits.H.

◆ labelBits() [2/3]

labelBits ( const label  val,
const direction  bits 
)
inline

Construct from components.

Definition at line 82 of file labelBits.H.

◆ labelBits() [3/3]

labelBits ( Istream is)
inline

Construct from Istream.

Definition at line 88 of file labelBits.H.

Member Function Documentation

◆ val()

◆ bits()

direction bits ( ) const
inline

Definition at line 102 of file labelBits.H.

Referenced by dynamicIndexedOctree< Type >::getOctant(), indexedOctree< Type >::getOctant(), labelBits::setBits(), and labelBits::setVal().

Here is the caller graph for this function:

◆ setVal()

void setVal ( const label  val)
inline

Definition at line 107 of file labelBits.H.

References labelBits::bits(), and labelBits::val().

Here is the call graph for this function:

◆ setBits()

void setBits ( const direction  bits)
inline

Definition at line 112 of file labelBits.H.

References labelBits::bits(), and labelBits::val().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator==

bool operator== ( const labelBits a,
const labelBits b 
)
friend

Definition at line 120 of file labelBits.H.

◆ operator!=

bool operator!= ( const labelBits a,
const labelBits b 
)
friend

Definition at line 125 of file labelBits.H.

◆ operator>>

Istream& operator>> ( Istream is,
labelBits lb 
)
friend

Definition at line 132 of file labelBits.H.

◆ operator<<

Ostream& operator<< ( Ostream os,
const labelBits lb 
)
friend

Definition at line 137 of file labelBits.H.


The documentation for this class was generated from the following file: