Chombo + EB  3.2
Public Member Functions | List of all members
BArena Class Reference

A Concrete Class for Dynamic Memory Management. More...

#include <Arena.H>

Inheritance diagram for BArena:
Inheritance graph
[legend]

Public Member Functions

 BArena (const char *a_name="unnamed")
 
 BArena (const std::string &a_name)
 
virtual void * alloc (size_t a_sz)
 
virtual void free (void *a_pt)
 Deletes the arena pointed to by a_pt. More...
 
- Public Member Functions inherited from Arena
 Arena ()
 base class constructor More...
 
virtual ~Arena ()
 base class destructor. More...
 

Additional Inherited Members

- Public Types inherited from Arena
typedef void(* FP) ()
 
- Static Public Member Functions inherited from Arena
static size_t align (size_t a_sz)
 

Detailed Description

A Concrete Class for Dynamic Memory Management.

This is the simplest dynamic memory management class derived from Arena.

Makes calls to ::operator new() and ::operator delete().

Constructor & Destructor Documentation

◆ BArena() [1/2]

BArena::BArena ( const char *  a_name = "unnamed")

optional

Parameters
a_nameused by memory tracker to distinguish between different memory Arenas

◆ BArena() [2/2]

BArena::BArena ( const std::string &  a_name)

Member Function Documentation

◆ alloc()

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.

◆ free()

virtual void BArena::free ( void *  a_pt)
virtual

Deletes the arena pointed to by a_pt.

Implements Arena.


The documentation for this class was generated from the following file: