OpenFOAM logo
Open Source CFD Toolkit

treeNode.H File Reference


Detailed Description

View treeNode.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
Class to implement octree.
Holds the pointers to subcubes. These are either other treeNodes or
treeLeafs. treeLeafs hold the actual data as a list of indices into
octreeData.

To prevent calculation errors all bb's used in octrees are calculated 
only once.

The pointers to either treeNode/treeLeaf are implemented 'by hand'
(explicitly marking type) instead of using a proper virtual mechanism
to save some space in the treeLeaves.

Source files

Definition in file treeNode.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  treeNode

Functions

template<class Type>
Istream & operator>> (Istream &, treeNode< Type > &)
template<class Type>
Ostream & operator<< (Ostream &, const treeNode< Type > &)
 TemplateName (treeNode)


Function Documentation

Ostream& operator<< Ostream &  ,
const treeNode< Type > & 
 

Istream& operator>> Istream &  ,
treeNode< Type > & 
 

TemplateName treeNode   ) 
 

For further information go to www.openfoam.org