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

MemPool Class Template Reference

Class implementing a memory pool for fast allocation of objects. More...

#include <mempool.h>

List of all members.

Public Member Functions

 MemPool ()
 Default constructor.
 MemPool (int chunksize)
 Constructor initializing the chunk size.
 ~MemPool ()
 Destructor.
void init (int chunksize)
 Clears all previously allocated memory and sets the chunk size.
T * allocate (int n)
 Allocate an array of n objects, returning a pointer to the array.


Detailed Description

template<class T>
class asr::MemPool< T >

Class implementing a memory pool for fast allocation of objects.

The class is templated on the type of the object.


The documentation for this class was generated from the following files:
Generated on Sun Mar 26 19:14:13 2006 for ASR by  doxygen 1.4.4