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

SAMRAI::tbox::ScratchArena Class Reference

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

Inheritance diagram for SAMRAI::tbox::ScratchArena:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Class ScratchArena is intended for temporary memory allocation from a scratch arena. However, ScratchArena currently uses the standard C++ new and delete operators for memory allocation and deallocation.

See also:
tbox::Arena


Constructor & Destructor Documentation

SAMRAI::tbox::ScratchArena::ScratchArena  )  [inline]
 

The constructor for the scratch memory arena.

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

The virtual destructor for the scratch memory arena.


Member Function Documentation

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

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

Implements SAMRAI::tbox::Arena.

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

Return memory to the scratch arena pool. The current implementation of ScratchArena simply 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