Bullet Collision Detection & Physics Library
|
The btPoolAllocator class allows to efficiently allocate a large pool of objects, instead of dynamically allocating them separately. More...
#include <btPoolAllocator.h>
Public Member Functions | |
btPoolAllocator (int elemSize, int maxElements) | |
~btPoolAllocator () | |
int | getFreeCount () const |
int | getUsedCount () const |
int | getMaxCount () const |
void * | allocate (int size) |
bool | validPtr (void *ptr) |
void | freeMemory (void *ptr) |
int | getElementSize () const |
unsigned char * | getPoolAddress () |
const unsigned char * | getPoolAddress () const |
Private Attributes | |
int | m_elemSize |
int | m_maxElements |
int | m_freeCount |
void * | m_firstFree |
unsigned char * | m_pool |
btSpinMutex | m_mutex |
The btPoolAllocator class allows to efficiently allocate a large pool of objects, instead of dynamically allocating them separately.
Definition at line 23 of file btPoolAllocator.h.
Definition at line 33 of file btPoolAllocator.h.
|
inline |
Definition at line 51 of file btPoolAllocator.h.
Definition at line 71 of file btPoolAllocator.h.
Definition at line 100 of file btPoolAllocator.h.
|
inline |
Definition at line 114 of file btPoolAllocator.h.
|
inline |
Definition at line 56 of file btPoolAllocator.h.
|
inline |
Definition at line 66 of file btPoolAllocator.h.
Definition at line 119 of file btPoolAllocator.h.
Definition at line 124 of file btPoolAllocator.h.
|
inline |
Definition at line 61 of file btPoolAllocator.h.
Definition at line 88 of file btPoolAllocator.h.
|
private |
Definition at line 25 of file btPoolAllocator.h.
|
private |
Definition at line 28 of file btPoolAllocator.h.
|
private |
Definition at line 27 of file btPoolAllocator.h.
|
private |
Definition at line 26 of file btPoolAllocator.h.
|
private |
Definition at line 30 of file btPoolAllocator.h.
Definition at line 29 of file btPoolAllocator.h.