Logo Search packages:      
Sourcecode: blender version File versions  Download package

btPoolAllocator Class Reference

#include <btPoolAllocator.h>

List of all members.


Detailed Description

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.


Public Member Functions

void * allocate (int size)
 btPoolAllocator (int elemSize, int maxElements)
void freeMemory (void *ptr)
int getElementSize () const
int getFreeCount () const
bool validPtr (void *ptr)

Private Attributes

int m_elemSize
void * m_firstFree
int m_freeCount
int m_maxElements
unsigned char * m_pool

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

Generated by  Doxygen 1.6.0   Back to index