CL_FixedMemoryPool< s > Class Template Reference
[clanCore System]

Memory pool using a fixed memory size. More...

#include <fixed_memory_pool.h>

Inheritance diagram for CL_FixedMemoryPool< s >:

CL_StaticMemoryPool CL_MemoryPool List of all members.

Public Member Functions

Construction
 CL_FixedMemoryPool (CL_MemoryPool *alternative_pool=0)
 Constructs memory pool object.
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

template<int s>
class CL_FixedMemoryPool< s >

Memory pool using a fixed memory size.


Constructor & Destructor Documentation

template<int s>
CL_FixedMemoryPool< s >::CL_FixedMemoryPool CL_MemoryPool alternative_pool = 0  )  [inline]
 

Constructs memory pool object.


Member Function Documentation

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

Allocate memory.

param: size = Size to allocate

Implements CL_MemoryPool.

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

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:36 2009 for ClanLib by  doxygen 1.4.6