Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::tbox::StandardArena Class Reference

#include <source/toolbox/memory/StandardArena.h>

Inheritance diagram for SAMRAI::tbox::StandardArena:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 StandardArena ()
virtual ~StandardArena ()
virtual void * alloc (const size_t bytes)
virtual void free (void *p)

Detailed Description

Class StandardArena is intended for standard memory allocation requests. It currently uses the standard C++ new and delete operators for memory allocation and deallocation.

See also:
tbox::Arena


Constructor & Destructor Documentation

SAMRAI::tbox::StandardArena::StandardArena  )  [inline]
 

The constructor for the standard memory arena.

SAMRAI::tbox::StandardArena::~StandardArena  )  [virtual]
 

The virtual destructor for the standard memory arena.


Member Function Documentation

void * SAMRAI::tbox::StandardArena::alloc const size_t  bytes  )  [virtual]
 

Allocate memory from the standard memory arena. The current implementation of StandardArena uses the standard C++ new operator.

Implements SAMRAI::tbox::Arena.

void SAMRAI::tbox::StandardArena::free void *  p  )  [virtual]
 

Return memory to the standard arena pool. The current implementation of StandardArena uses the standard C++ delete operator.

Implements SAMRAI::tbox::Arena.


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:33:32 2005 for SAMRAI by  doxygen 1.4.2