#include <DetourNode.h>
dtNodeQueue::dtNodeQueue |
( |
int |
n | ) |
|
void * dtAlloc(int size, dtAllocHint hint)
Definition: DetourAlloc.cpp:41
const int m_capacity
Definition: DetourNode.h:165
Definition: DetourNode.h:34
Memory persist after a function call.
Definition: DetourAlloc.h:26
#define dtAssert
Definition: DetourAssert.h:30
int m_size
Definition: DetourNode.h:166
dtNode ** m_heap
Definition: DetourNode.h:164
dtNodeQueue::~dtNodeQueue |
( |
| ) |
|
dtNode ** m_heap
Definition: DetourNode.h:164
void dtFree(void *ptr)
Definition: DetourAlloc.cpp:46
void dtNodeQueue::bubbleUp |
( |
int |
i, |
|
|
dtNode * |
node |
|
) |
| |
|
private |
159 int parent = (i-1)/2;
dtNode ** m_heap
Definition: DetourNode.h:164
float total
Cost up to the node.
Definition: DetourNode.h:38
void dtNodeQueue::clear |
( |
| ) |
|
|
inline |
int m_size
Definition: DetourNode.h:166
bool dtNodeQueue::empty |
( |
| ) |
const |
|
inline |
int m_size
Definition: DetourNode.h:166
int dtNodeQueue::getCapacity |
( |
| ) |
const |
|
inline |
const int m_capacity
Definition: DetourNode.h:165
int dtNodeQueue::getMemUsed |
( |
| ) |
const |
|
inline |
154 return sizeof(*this) +
const int m_capacity
Definition: DetourNode.h:165
Definition: DetourNode.h:34
void dtNodeQueue::modify |
( |
dtNode * |
node | ) |
|
|
inline |
140 for (
int i = 0; i <
m_size; ++i)
int m_size
Definition: DetourNode.h:166
void bubbleUp(int i, dtNode *node)
Definition: DetourNode.cpp:157
dtNode ** m_heap
Definition: DetourNode.h:164
Definition: DetourNode.h:34
void trickleDown(int i, dtNode *node)
Definition: DetourNode.cpp:170
int m_size
Definition: DetourNode.h:166
dtNode ** m_heap
Definition: DetourNode.h:164
void dtNodeQueue::push |
( |
dtNode * |
node | ) |
|
|
inline |
int m_size
Definition: DetourNode.h:166
void bubbleUp(int i, dtNode *node)
Definition: DetourNode.cpp:157
dtNode ** m_heap
Definition: DetourNode.h:164
void dtNodeQueue::trickleDown |
( |
int |
i, |
|
|
dtNode * |
node |
|
) |
| |
|
private |
175 if (((child+1) <
m_size) &&
int m_size
Definition: DetourNode.h:166
void bubbleUp(int i, dtNode *node)
Definition: DetourNode.cpp:157
dtNode ** m_heap
Definition: DetourNode.h:164
float total
Cost up to the node.
Definition: DetourNode.h:38
const int dtNodeQueue::m_capacity |
|
private |
The documentation for this class was generated from the following files: