CL_MemoryPool Class Reference
[clanCore System]

Memory allocation interface. More...

#include <memory_pool.h>

Inheritance diagram for CL_MemoryPool:

CL_StaticMemoryPool CL_FixedMemoryPool< s > List of all members.

Operations

virtual void * alloc (size_t size)=0
 Allocate memory.
virtual void free (void *data)=0
 Free memory.
static CL_MemoryPoolget_temp_pool ()
 Returns the thread temporary pool.

Public Member Functions

Construction
virtual ~CL_MemoryPool ()

Detailed Description

Memory allocation interface.


Constructor & Destructor Documentation

virtual CL_MemoryPool::~CL_MemoryPool  )  [inline, virtual]
 


Member Function Documentation

virtual void* CL_MemoryPool::alloc size_t  size  )  [pure virtual]
 

Allocate memory.

param: size = Size to allocate

Implemented in CL_StaticMemoryPool.

virtual void CL_MemoryPool::free void *  data  )  [pure virtual]
 

Free memory.

param: data = Data to free

Implemented in CL_StaticMemoryPool.

static CL_MemoryPool* CL_MemoryPool::get_temp_pool  )  [static]
 

Returns the thread temporary pool.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:39 2009 for ClanLib by  doxygen 1.4.6