Public Member Functions | |
| MemoryPoolBlob () | |
| ~MemoryPoolBlob () | |
| void | initBlob (MemoryPool *owningPool, Int allocationCount) |
| void | addBlobToList (MemoryPoolBlob **ppHead, MemoryPoolBlob **ppTail) |
| void | removeBlobFromList (MemoryPoolBlob **ppHead, MemoryPoolBlob **ppTail) |
| MemoryPoolBlob * | getNextInList () |
| accessor | |
| Bool | hasAnyFreeBlocks () |
| accessor | |
| MemoryPoolSingleBlock * | allocateSingleBlock (DECLARE_LITERALSTRING_ARG1) |
| void | freeSingleBlock (MemoryPoolSingleBlock *block) |
| MemoryPool * | getOwningPool () |
| accessor | |
| Int | getFreeBlockCount () |
| accessor | |
| Int | getUsedBlockCount () |
| accessor | |
| Int | getTotalBlockCount () |
| accessor | |
Definition at line 470 of file GameMemory.cpp.
| MemoryPoolBlob::MemoryPoolBlob | ( | ) |
fill in safe default values.
Definition at line 1155 of file GameMemory.cpp.
| MemoryPoolBlob::~MemoryPoolBlob | ( | ) |
throw away the blob. free the block data, if any.
Definition at line 1170 of file GameMemory.cpp.
| void MemoryPoolBlob::addBlobToList | ( | MemoryPoolBlob ** | ppHead, |
| MemoryPoolBlob ** | ppTail ) |
add this blob to a given pool's list-of-blobs
Definition at line 1219 of file GameMemory.cpp.
| MemoryPoolSingleBlock * MemoryPoolBlob::allocateSingleBlock | ( | DECLARE_LITERALSTRING_ARG1 | ) |
grab a free block from this blob, mark it as taken, and return it. this method assumes that there is at least one free block in the blob!
Definition at line 1255 of file GameMemory.cpp.
| void MemoryPoolBlob::freeSingleBlock | ( | MemoryPoolSingleBlock * | block | ) |
make this block available for future allocations. it is assumed that the block belongs to this blob, and is not already free.
Definition at line 1285 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 718 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 712 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 716 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 722 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 720 of file GameMemory.cpp.
|
inline |
accessor
Definition at line 714 of file GameMemory.cpp.
| void MemoryPoolBlob::initBlob | ( | MemoryPool * | owningPool, |
| Int | allocationCount ) |
initialize a Blob; this is called just after the blob is allocated. allocate space for the blocks in this blob and initialize all those blocks.
Definition at line 1180 of file GameMemory.cpp.
| void MemoryPoolBlob::removeBlobFromList | ( | MemoryPoolBlob ** | ppHead, |
| MemoryPoolBlob ** | ppTail ) |
remove this blob from a given pool's list-of-blobs
Definition at line 1237 of file GameMemory.cpp.