#include <allocbase.hpp>

Public Member Functions | |
| CSGXMemoryAllocator (void *ptr, const tMEM_SIZE size, const CSGXMemoryAlignment &alignment) | |
| virtual void * | alloc (const tMEM_SIZE size)=0 |
| virtual tMEM_SIZE | getBlockSize (void *ptr) |
| virtual tBOOL | freeAll () |
| virtual tBOOL | reportAll () |
Static Public Member Functions | |
| static CSGXMemoryAllocator * | setDefault (CSGXMemoryAllocator *pNewDefault) |
| static void * | alloc (const tMEM_SIZE size, const CSGXMemoryAlignment &alignment, const char *pFilename=NULL, const int lineNumber=0) |
| static tMEM_SIZE | getSize (void *ptr) |
| static tBOOL | free (void *ptr) |
Static Public Attributes | |
| static CSGXMemoryAlignment | m_DefaultAlignment |
Protected Member Functions | |
| virtual tBOOL | freePtr (void *ptr) |
Protected Attributes | |
| tBYTE * | m_pBlock |
| tMEM_SIZE | m_iBlockSize |
| CSGXMemoryAlignment | m_Alignment |
| CSGXMemoryAllocator::CSGXMemoryAllocator | ( | void * | ptr, | |
| const tMEM_SIZE | size, | |||
| const CSGXMemoryAlignment & | alignment | |||
| ) |
| virtual void* CSGXMemoryAllocator::alloc | ( | const tMEM_SIZE | size | ) | [pure virtual] |
| virtual tMEM_SIZE CSGXMemoryAllocator::getBlockSize | ( | void * | ptr | ) | [inline, virtual] |
Reimplemented in CSGXMemoryAllocatorHeap.
| virtual tBOOL CSGXMemoryAllocator::freeAll | ( | ) | [virtual] |
| virtual tBOOL CSGXMemoryAllocator::reportAll | ( | ) | [virtual] |
| static CSGXMemoryAllocator* CSGXMemoryAllocator::setDefault | ( | CSGXMemoryAllocator * | pNewDefault | ) | [static] |
| static void* CSGXMemoryAllocator::alloc | ( | const tMEM_SIZE | size, | |
| const CSGXMemoryAlignment & | alignment, | |||
| const char * | pFilename = NULL, |
|||
| const int | lineNumber = 0 | |||
| ) | [static] |
| static tMEM_SIZE CSGXMemoryAllocator::getSize | ( | void * | ptr | ) | [static] |
| static tBOOL CSGXMemoryAllocator::free | ( | void * | ptr | ) | [static] |
| virtual tBOOL CSGXMemoryAllocator::freePtr | ( | void * | ptr | ) | [protected, virtual] |
tBYTE* CSGXMemoryAllocator::m_pBlock [protected] |
tMEM_SIZE CSGXMemoryAllocator::m_iBlockSize [protected] |
CSGXMemoryAlignment CSGXMemoryAllocator::m_Alignment [protected] |
1.5.6