Loading...
Searching...
No Matches
indexedOctreeBase::node Class Reference

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

#include <indexedOctree.H>

Collaboration diagram for indexedOctreeBase::node:

Public Attributes

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

Static Public Attributes

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

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.

◆ operator==

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

Definition at line 103 of file indexedOctree.H.

References b, bb_, parent_, and subNodes_.

◆ operator!=

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

Definition at line 113 of file indexedOctree.H.

References b.

◆ operator<<

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

Definition at line 118 of file indexedOctree.H.

References n, os(), and token::SPACE.

◆ operator>>

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

Definition at line 124 of file indexedOctree.H.

References n.

Member Data Documentation

◆ nChildren

direction nChildren = 8
staticconstexpr

◆ bb_

◆ parent_

label parent_ = -1

Parent node (index into flat list addressing for tree).

Definition at line 93 of file indexedOctree.H.

Referenced by operator==, dynamicIndexedOctree< Type >::print(), and indexedOctree< Type >::print().

◆ subNodes_


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