iso::space::NTreeNodePool Class Reference

pool of ntree nodes More...

#include <iso_space_ntree_node_pool.h>

List of all members.

Public Member Functions

 NTreeNodePool (unsigned int pDim)
 create pool of ntree nodes
 NTreeNodePool (unsigned int pDim, unsigned int pStartPoolSize, unsigned int pPoolSizeIncrement=sPoolSizeIncrement)
 create pool of ntree nodes
virtual ~NTreeNodePool ()
 destructor
NTreeNoderetrieve ()
 retrieve node from pool
void release (NTreeNode *pNode)
 release node into pool
base::String info () const
 obtain textual node pool information

Protected Member Functions

 NTreeNodePool ()
 default constructor

Protected Attributes

unsigned int mDim
 node dimension
unsigned int mPoolSizeIncrement
 size by which the pool increases whenever it runs out of events
QVector< NTreeNode * > mNodes
 vector of unused ntree nodes

Static Protected Attributes

static unsigned int sStartPoolSize
 default initial pool size
static unsigned int sPoolSizeIncrement
 default pool size increment

Friends

std::ostream & operator<< (std::ostream &pOstream, const NTreeNodePool &pPool)
 retrieve textual ntree node pool information


Detailed Description

pool of ntree nodes

ntree nodes

Created by Daniel Bisig on 3/29/07. Copyright 2006 Daniel Bisig All rights reserved.


Constructor & Destructor Documentation

NTreeNodePool::NTreeNodePool ( unsigned int  pDim  ) 

create pool of ntree nodes

Parameters:
pDim dimension of nodes

NTreeNodePool::NTreeNodePool ( unsigned int  pDim,
unsigned int  pStartPoolSize,
unsigned int  pPoolSizeIncrement = sPoolSizeIncrement 
)

create pool of ntree nodes

Parameters:
pDim dimension of nodes
pStartPoolSize number of nodes that are initially in the pool
pPoolSizeIncrement size by which the pool increases whenever it runs out of nodes

NTreeNodePool::~NTreeNodePool (  )  [virtual]

destructor

NTreeNodePool::NTreeNodePool (  )  [protected]

default constructor


Member Function Documentation

NTreeNode * NTreeNodePool::retrieve (  ) 

retrieve node from pool

void NTreeNodePool::release ( NTreeNode pNode  ) 

release node into pool

Parameters:
pNode node to be released

base::String NTreeNodePool::info (  )  const

obtain textual node pool information

Returns:
String containing node pool information


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const NTreeNodePool pPool 
) [friend]

retrieve textual ntree node pool information

Parameters:
pOstream output stream
pPool ntree node pool


Member Data Documentation

unsigned int NTreeNodePool::sStartPoolSize [static, protected]

default initial pool size

unsigned int NTreeNodePool::sPoolSizeIncrement [static, protected]

default pool size increment

unsigned int iso::space::NTreeNodePool::mDim [protected]

node dimension

unsigned int iso::space::NTreeNodePool::mPoolSizeIncrement [protected]

size by which the pool increases whenever it runs out of events

QVector<NTreeNode*> iso::space::NTreeNodePool::mNodes [protected]

vector of unused ntree nodes


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:08:15 2011 for iso_space by  doxygen 1.5.1