#include <b2BlockAllocator.h>
This is a small object allocator used for allocating small objects that persist for more than one time step. See: http://www.codeproject.com/useritems/Small_Block_Allocator.asp
Definition at line 35 of file b2BlockAllocator.h.
b2BlockAllocator::b2BlockAllocator |
( |
| ) |
|
b2BlockAllocator::~b2BlockAllocator |
( |
| ) |
|
void * b2BlockAllocator::Allocate |
( |
int32 |
size | ) |
|
Allocate memory. This will use b2Alloc if the size is larger than b2_maxBlockSize.
Definition at line 97 of file b2BlockAllocator.cpp.
void b2BlockAllocator::Clear |
( |
| ) |
|
void b2BlockAllocator::Free |
( |
void * |
p, |
|
|
int32 |
size |
|
) |
| |
Free memory. This will use b2Free if the size is larger than b2_maxBlockSize.
Definition at line 155 of file b2BlockAllocator.cpp.
int32 b2BlockAllocator::m_chunkCount |
|
private |
b2Chunk* b2BlockAllocator::m_chunks |
|
private |
int32 b2BlockAllocator::m_chunkSpace |
|
private |
uint8 b2BlockAllocator::s_blockSizeLookup |
|
staticprivate |
bool b2BlockAllocator::s_blockSizeLookupInitialized |
|
staticprivate |
int32 b2BlockAllocator::s_blockSizes |
|
staticprivate |
Initial value:=
{
16,
32,
64,
96,
128,
160,
192,
224,
256,
320,
384,
448,
512,
640,
}
Definition at line 57 of file b2BlockAllocator.h.
The documentation for this class was generated from the following files: