CSGXMemoryAllocator Class Reference

#include <allocbase.hpp>

Inheritance diagram for CSGXMemoryAllocator:

CSGXMemoryAllocatorHeap CSGXMemoryAllocatorLinear CSGXMemoryAllocatorPool CSGXMemoryAllocatorScratch CSGXMemoryAllocatorStdC CSGXMemoryAllocatorStdCPP CSGXMemoryAllocatorStack

List of all members.

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 CSGXMemoryAllocatorsetDefault (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


Constructor & Destructor Documentation

CSGXMemoryAllocator::CSGXMemoryAllocator ( void *  ptr,
const tMEM_SIZE  size,
const CSGXMemoryAlignment alignment 
)


Member Function Documentation

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]


Member Data Documentation

tBYTE* CSGXMemoryAllocator::m_pBlock [protected]

tMEM_SIZE CSGXMemoryAllocator::m_iBlockSize [protected]


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

Generated on Thu Aug 14 14:36:36 2008 for The SGX Core by  doxygen 1.5.6