#include <source/toolbox/memory/ScratchArena.h>
Inheritance diagram for SAMRAI::tbox::ScratchArena:

Public Member Functions | |
| ScratchArena () | |
| virtual | ~ScratchArena () |
| virtual void * | alloc (const size_t bytes) |
| virtual void | free (void *p) |
|
|
The constructor for the scratch memory arena. |
|
|
The virtual destructor for the scratch memory arena. |
|
|
Allocate memory from the scratch arena. The current implementation of ScratchArena simply uses the standard C++ new operator. Implements SAMRAI::tbox::Arena. |
|
|
Return memory to the scratch arena pool. The current implementation of ScratchArena simply uses the standard C++ delete operator. Implements SAMRAI::tbox::Arena. |
1.4.2