Blender V2.61 - r43446
Public Member Functions

btPoolAllocator Class Reference

The btPoolAllocator class allows to efficiently allocate a large pool of objects, instead of dynamically allocating them separately. More...

#include <btPoolAllocator.h>

List of all members.

Public Member Functions

 btPoolAllocator (int elemSize, int maxElements)
 ~btPoolAllocator ()
int getFreeCount () const
int getUsedCount () const
void * allocate (int size)
bool validPtr (void *ptr)
void freeMemory (void *ptr)
int getElementSize () const
unsigned char * getPoolAddress ()
const unsigned char * getPoolAddress () const

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.


Constructor & Destructor Documentation

btPoolAllocator::btPoolAllocator ( int  elemSize,
int  maxElements 
) [inline]

Definition at line 33 of file btPoolAllocator.h.

References btAlignedAlloc, and p.

btPoolAllocator::~btPoolAllocator ( ) [inline]

Member Function Documentation

void* btPoolAllocator::allocate ( int  size) [inline]
void btPoolAllocator::freeMemory ( void *  ptr) [inline]
int btPoolAllocator::getElementSize ( ) const [inline]
int btPoolAllocator::getFreeCount ( ) const [inline]
const unsigned char* btPoolAllocator::getPoolAddress ( ) const [inline]

Definition at line 109 of file btPoolAllocator.h.

unsigned char* btPoolAllocator::getPoolAddress ( ) [inline]

Definition at line 104 of file btPoolAllocator.h.

int btPoolAllocator::getUsedCount ( ) const [inline]

Definition at line 60 of file btPoolAllocator.h.

bool btPoolAllocator::validPtr ( void *  ptr) [inline]

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