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

BArena Class Reference

A Concrete Class for Dynamic Memory Management. More...

#include <Arena.H>

Inheritance diagram for BArena:

Inheritance graph
[legend]
Collaboration diagram for BArena:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BArena (const char *name="unnamed")
virtual void * alloc (size_t sz)
virtual void free (void *pt)
 Deletes the arena pointed to by pt.


Detailed Description

A Concrete Class for Dynamic Memory Management.

This is the simplest dynamic memory management class derived from Arena.

Makes calls to ::operator new() and ::operator delete().


Constructor & Destructor Documentation

BArena::BArena const char *  name = "unnamed"  ) 
 

optional

Parameters:
name used by memory tracker to distinguish between different memory Arenas


Member Function Documentation

virtual void* BArena::alloc size_t  sz  )  [virtual]
 

: Allocates a dynamic memory arena of size sz. Returns a pointer to this memory.

Implements Arena.

virtual void BArena::free void *  pt  )  [virtual]
 

Deletes the arena pointed to by pt.

Implements Arena.


The documentation for this class was generated from the following file:
Generated on Wed Jun 2 13:58:13 2004 for Chombo&INSwithParticles by doxygen 1.3.2