Blender  V3.3
Public Member Functions | List of all members
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>

Public Member Functions

 btPoolAllocator (int elemSize, int maxElements)
 
 ~btPoolAllocator ()
 
int getFreeCount () const
 
int getUsedCount () const
 
int getMaxCount () const
 
voidallocate (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::btPoolAllocator ( int  elemSize,
int  maxElements 
)
inline

Definition at line 33 of file btPoolAllocator.h.

References btAlignedAlloc, and count.

◆ ~btPoolAllocator()

btPoolAllocator::~btPoolAllocator ( )
inline

Member Function Documentation

◆ allocate()

void* btPoolAllocator::allocate ( int  size)
inline

◆ freeMemory()

void btPoolAllocator::freeMemory ( void ptr)
inline

◆ getElementSize()

int btPoolAllocator::getElementSize ( ) const
inline

◆ getFreeCount()

int btPoolAllocator::getFreeCount ( ) const
inline

Definition at line 56 of file btPoolAllocator.h.

◆ getMaxCount()

int btPoolAllocator::getMaxCount ( ) const
inline

Definition at line 66 of file btPoolAllocator.h.

◆ getPoolAddress() [1/2]

unsigned char* btPoolAllocator::getPoolAddress ( )
inline

Definition at line 119 of file btPoolAllocator.h.

◆ getPoolAddress() [2/2]

const unsigned char* btPoolAllocator::getPoolAddress ( ) const
inline

Definition at line 124 of file btPoolAllocator.h.

◆ getUsedCount()

int btPoolAllocator::getUsedCount ( ) const
inline

Definition at line 61 of file btPoolAllocator.h.

◆ validPtr()

bool btPoolAllocator::validPtr ( void ptr)
inline

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