indexedOctreeBase::node Class Reference

Tree node. Has up pointer and down pointers. More...

Collaboration diagram for indexedOctreeBase::node:

Public Attributes

treeBoundBox bb_
 Bounding box of this node. More...
 
label parent_ = -1
 Parent node (index into flat list addressing for tree) More...
 
FixedList< labelBits, 8 > subNodes_
 IDs of the 8 nodes on all sides of the mid point. More...
 

Static Public Attributes

static constexpr direction nChildren = 8
 Has exactly 8 sub-nodes (octants) More...
 

Friends

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

Detailed Description

Tree node. Has up pointer and down pointers.

Definition at line 76 of file indexedOctree.H.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 103 of file indexedOctree.H.

◆ operator!=

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

Definition at line 113 of file indexedOctree.H.

◆ operator<<

Ostream& operator<< ( Ostream os,
const node n 
)
friend

Definition at line 118 of file indexedOctree.H.

◆ operator>>

Istream& operator>> ( Istream is,
node n 
)
friend

Definition at line 124 of file indexedOctree.H.

Member Data Documentation

◆ nChildren

constexpr direction nChildren = 8
static

Has exactly 8 sub-nodes (octants)

Definition at line 83 of file indexedOctree.H.

◆ bb_

◆ parent_

label parent_ = -1

Parent node (index into flat list addressing for tree)

Definition at line 93 of file indexedOctree.H.

Referenced by dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::print(), and indexedOctree< Foam::treeDataPrimitivePatch< PatchType > >::print().

◆ subNodes_


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