#include <Arena.H>
This is the simplest dynamic memory management class derived from Arena.
Makes calls to operator new() and operator delete().
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. |
BArena::BArena | ( | const char * | a_name = "unnamed" |
) |
optional
a_name | used by memory tracker to distinguish between different memory Arenas |
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] |