CL_StaticMemoryPool Class Reference
[clanCore System]

Static memory pool. More...

#include <static_memory_pool.h>

Inheritance diagram for CL_StaticMemoryPool:

CL_MemoryPool CL_FixedMemoryPool< s > List of all members.

Public Member Functions

Construction
 CL_StaticMemoryPool (void *buffer, size_t size, CL_MemoryPool *alternative_pool=0)
 ~CL_StaticMemoryPool ()
Operations
void * alloc (size_t size)
 Allocate memory.
void free (void *data)
 Free memory.

Static Public Member Functions

Operations
static CL_MemoryPoolget_temp_pool ()
 Returns the thread temporary pool.

Detailed Description

Static memory pool.


Constructor & Destructor Documentation

CL_StaticMemoryPool::CL_StaticMemoryPool void *  buffer,
size_t  size,
CL_MemoryPool alternative_pool = 0
 

CL_StaticMemoryPool::~CL_StaticMemoryPool  ) 
 


Member Function Documentation

void* CL_StaticMemoryPool::alloc size_t  size  )  [virtual]
 

Allocate memory.

param: size = Size to allocate

Implements CL_MemoryPool.

void CL_StaticMemoryPool::free void *  data  )  [virtual]
 

Free memory.

param: data = Data to free

Implements CL_MemoryPool.

static CL_MemoryPool* CL_MemoryPool::get_temp_pool  )  [static, inherited]
 

Returns the thread temporary pool.


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