Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class 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 *a_name="unnamed")
virtual void * alloc (size_t a_sz)
virtual void free (void *a_pt)
 Deletes the arena pointed to by a_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 *  a_name = "unnamed"  ) 
 

optional

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


Member Function Documentation

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

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

Implements Arena.

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

Deletes the arena pointed to by a_pt.

Implements Arena.


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 13:59:55 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1