Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

CustomMemoryManager< unit_size, block_size > Class Template Reference

#include <custmem.hpp>

List of all members.


Detailed Description

template<int unit_size, int block_size>
class CustomMemoryManager< unit_size, block_size >

an ugly generic implementation of custom memory management

Definition at line 52 of file custmem.hpp.

Public Member Functions

 CustomMemoryManager ()
 Constructor.
 ~CustomMemoryManager ()
 Destructor.
void * GetUnit (size_t s)
 Memory allocation.
void ReleaseUnit (void *unit, size_t s)
 Memory disposal.

Classes

struct  blockhandler
union  memoryunit


Constructor & Destructor Documentation

template<int unit_size, int block_size>
CustomMemoryManager< unit_size, block_size >::CustomMemoryManager  ) 
 

Constructor.

Definition at line 72 of file custmem.hpp.

template<int unit_size, int block_size>
CustomMemoryManager< unit_size, block_size >::~CustomMemoryManager  ) 
 

Destructor.

Definition at line 77 of file custmem.hpp.


Member Function Documentation

template<int unit_size, int block_size>
void* CustomMemoryManager< unit_size, block_size >::GetUnit size_t  s  ) 
 

Memory allocation.

Definition at line 85 of file custmem.hpp.

template<int unit_size, int block_size>
void CustomMemoryManager< unit_size, block_size >::ReleaseUnit void *  unit,
size_t  s
 

Memory disposal.

Definition at line 102 of file custmem.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Dec 18 00:40:57 2007 for InteLib by  doxygen 1.4.1