Recast Navigation
Navigation-mesh Toolset for Games
dtNodePool Class Reference

#include <DetourNode.h>

Public Member Functions

 dtNodePool (int maxNodes, int hashSize)
 
 ~dtNodePool ()
 
void clear ()
 
dtNodegetNode (dtPolyRef id, unsigned char state=0)
 
dtNodefindNode (dtPolyRef id, unsigned char state)
 
unsigned int findNodes (dtPolyRef id, dtNode **nodes, const int maxNodes)
 
unsigned int getNodeIdx (const dtNode *node) const
 
dtNodegetNodeAtIdx (unsigned int idx)
 
const dtNodegetNodeAtIdx (unsigned int idx) const
 
int getMemUsed () const
 
int getMaxNodes () const
 
int getHashSize () const
 
dtNodeIndex getFirst (int bucket) const
 
dtNodeIndex getNext (int i) const
 
int getNodeCount () const
 

Constructor & Destructor Documentation

◆ dtNodePool()

dtNodePool::dtNodePool ( int  maxNodes,
int  hashSize 
)

◆ ~dtNodePool()

dtNodePool::~dtNodePool ( )

Member Function Documentation

◆ clear()

void dtNodePool::clear ( )

◆ findNode()

dtNode * dtNodePool::findNode ( dtPolyRef  id,
unsigned char  state 
)

◆ findNodes()

unsigned int dtNodePool::findNodes ( dtPolyRef  id,
dtNode **  nodes,
const int  maxNodes 
)

◆ getFirst()

dtNodeIndex dtNodePool::getFirst ( int  bucket) const
inline

◆ getHashSize()

int dtNodePool::getHashSize ( ) const
inline

◆ getMaxNodes()

int dtNodePool::getMaxNodes ( ) const
inline

◆ getMemUsed()

int dtNodePool::getMemUsed ( ) const
inline

◆ getNext()

dtNodeIndex dtNodePool::getNext ( int  i) const
inline

◆ getNode()

dtNode * dtNodePool::getNode ( dtPolyRef  id,
unsigned char  state = 0 
)

◆ getNodeAtIdx() [1/2]

dtNode* dtNodePool::getNodeAtIdx ( unsigned int  idx)
inline

◆ getNodeAtIdx() [2/2]

const dtNode* dtNodePool::getNodeAtIdx ( unsigned int  idx) const
inline

◆ getNodeCount()

int dtNodePool::getNodeCount ( ) const
inline

◆ getNodeIdx()

unsigned int dtNodePool::getNodeIdx ( const dtNode node) const
inline

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