#include <source/toolbox/memory/StandardArena.h>
Inheritance diagram for SAMRAI::tbox::StandardArena:
Public Member Functions | |
StandardArena () | |
virtual | ~StandardArena () |
virtual void * | alloc (const size_t bytes) |
virtual void | free (void *p) |
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.
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.