doom3-gpl
Doom 3 GPL source release
|
#include <Heap.h>
Public Member Functions | |
idDynamicBlockAlloc (void) | |
~idDynamicBlockAlloc (void) | |
void | Init (void) |
void | Shutdown (void) |
void | SetFixedBlocks (int numBlocks) |
void | SetLockMemory (bool lock) |
void | FreeEmptyBaseBlocks (void) |
type * | Alloc (const int num) |
type * | Resize (type *ptr, const int num) |
void | Free (type *ptr) |
const char * | CheckMemory (const type *ptr) const |
int | GetNumBaseBlocks (void) const |
int | GetBaseBlockMemory (void) const |
int | GetNumUsedBlocks (void) const |
int | GetUsedBlockMemory (void) const |
int | GetNumFreeBlocks (void) const |
int | GetFreeBlockMemory (void) const |
int | GetNumEmptyBaseBlocks (void) const |
Private Member Functions | |
void | Clear (void) |
idDynamicBlock< type > * | AllocInternal (const int num) |
idDynamicBlock< type > * | ResizeInternal (idDynamicBlock< type > *block, const int num) |
void | FreeInternal (idDynamicBlock< type > *block) |
void | LinkFreeInternal (idDynamicBlock< type > *block) |
void | UnlinkFreeInternal (idDynamicBlock< type > *block) |
void | CheckMemory (void) const |
Private Attributes | |
idDynamicBlock< type > * | firstBlock |
idDynamicBlock< type > * | lastBlock |
idBTree< idDynamicBlock< type > , int, 4 > | freeTree |
bool | allowAllocs |
bool | lockMemory |
int | numBaseBlocks |
int | baseBlockMemory |
int | numUsedBlocks |
int | usedBlockMemory |
int | numFreeBlocks |
int | freeBlockMemory |
int | numAllocs |
int | numResizes |
int | numFrees |
idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::idDynamicBlockAlloc | ( | void | ) |
idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::~idDynamicBlockAlloc | ( | void | ) |
type * idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::Alloc | ( | const int | num | ) |
|
private |
const char * idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::CheckMemory | ( | const type * | ptr | ) | const |
|
private |
|
private |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::Free | ( | type * | ptr | ) |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::FreeEmptyBaseBlocks | ( | void | ) |
|
private |
|
inline |
|
inline |
|
inline |
int idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::GetNumEmptyBaseBlocks | ( | void | ) | const |
|
inline |
|
inline |
|
inline |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::Init | ( | void | ) |
|
private |
|
private |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::SetFixedBlocks | ( | int | numBlocks | ) |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::SetLockMemory | ( | bool | lock | ) |
void idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >::Shutdown | ( | void | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |