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

Pool Class Reference

#include <Pool.H>

Collaboration diagram for Pool:

Collaboration graph
[legend]
List of all members.

Public Methods

 Pool (int ptrSize, const char *name="unnamed", int poolSize=100, int alignment=sizeof(int))
 ~Pool ()
void * getPtr ()
void returnPtr (void *ptr)
long memUsage () const
void clear ()

Public Attributes

char name_ [64]

Static Public Attributes

PoolListpoolList_

Private Methods

void * getMoreMemory ()
 Pool (const Pool &rhs)
const Pool & operator= (const Pool &rhs)
 Not implemented.


Private Attributes

Vector< char * > pool_
int ptrSize_
int poolSize_
int alignment_
void * next_

Constructor & Destructor Documentation

Pool::Pool int    ptrSize,
const char *    name = "unnamed",
int    poolSize = 100,
int    alignment = sizeof(int)
 

Pool::~Pool  
 

Pool::Pool const Pool &    rhs [private]
 


Member Function Documentation

void Pool::clear  
 

void* Pool::getMoreMemory   [private]
 

void* Pool::getPtr  
 

long Pool::memUsage   const
 

const Pool& Pool::operator= const Pool &    rhs [private]
 

Not implemented.

void Pool::returnPtr void *    ptr
 


Member Data Documentation

int Pool::alignment_ [private]
 

char Pool::name_[64]
 

void* Pool::next_ [private]
 

Vector<char*> Pool::pool_ [private]
 

PoolList* Pool::poolList_ [static]
 

int Pool::poolSize_ [private]
 

int Pool::ptrSize_ [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:27 2003 for EBChombo by doxygen1.2.16