#include <iso_space_ntree_node_pool.h>
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 | |
NTreeNode * | retrieve () |
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 |
ntree nodes
Created by Daniel Bisig on 3/29/07. Copyright 2006 Daniel Bisig All rights reserved.
NTreeNodePool::NTreeNodePool | ( | unsigned int | pDim | ) |
create pool of ntree nodes
pDim | dimension of nodes |
NTreeNodePool::NTreeNodePool | ( | unsigned int | pDim, | |
unsigned int | pStartPoolSize, | |||
unsigned int | pPoolSizeIncrement = sPoolSizeIncrement | |||
) |
create pool of ntree nodes
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
NTreeNode * NTreeNodePool::retrieve | ( | ) |
retrieve node from pool
void NTreeNodePool::release | ( | NTreeNode * | pNode | ) |
release node into pool
pNode | node to be released |
base::String NTreeNodePool::info | ( | ) | const |
obtain textual node pool information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const NTreeNodePool & | pPool | |||
) | [friend] |
retrieve textual ntree node pool information
pOstream | output stream | |
pPool | ntree node pool |
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