Blender
V3.3
|
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 |
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.
|
inline |
Definition at line 33 of file btPoolAllocator.h.
References btAlignedAlloc, and count.
|
inline |
Definition at line 51 of file btPoolAllocator.h.
References btAlignedFree.
Referenced by btSoftBodyRigidBodyCollisionConfiguration::btSoftBodyRigidBodyCollisionConfiguration(), and btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration().
|
inline |
Definition at line 71 of file btPoolAllocator.h.
References btAssert, btMutexLock(), btMutexUnlock(), NULL, result, size(), and void.
Referenced by btCollisionDispatcher::allocateCollisionAlgorithm(), btCollisionDispatcher::getNewManifold(), and btCollisionDispatcherMt::getNewManifold().
Definition at line 100 of file btPoolAllocator.h.
References btAssert, btMutexLock(), btMutexUnlock(), and ptr.
Referenced by btCollisionDispatcher::freeCollisionAlgorithm(), btCollisionDispatcher::releaseManifold(), and btCollisionDispatcherMt::releaseManifold().
|
inline |
Definition at line 114 of file btPoolAllocator.h.
Referenced by btSoftBodyRigidBodyCollisionConfiguration::btSoftBodyRigidBodyCollisionConfiguration().
|
inline |
Definition at line 56 of file btPoolAllocator.h.
|
inline |
Definition at line 66 of file btPoolAllocator.h.
|
inline |
Definition at line 119 of file btPoolAllocator.h.
|
inline |
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.
References ptr.
Referenced by btCollisionDispatcher::freeCollisionAlgorithm(), btCollisionDispatcher::releaseManifold(), and btCollisionDispatcherMt::releaseManifold().