#include <tbox/StandardArena.h>
|
| static size_t | align (const size_t bytes) |
| |
Class StandardArena is intended for standard memory allocation requests. It currently uses the standard C++ new and delete operators for memory allocation and deallocation.
- See also
- tbox::Arena
◆ anonymous enum
| Enumerator |
|---|
| ArenaAllocationAlignment | |
◆ StandardArena() [1/2]
| SAMRAI::tbox::StandardArena::StandardArena |
( |
| ) |
|
The constructor for the standard memory arena.
◆ ~StandardArena()
| virtual SAMRAI::tbox::StandardArena::~StandardArena |
( |
| ) |
|
|
virtual |
The virtual destructor for the standard memory arena.
◆ StandardArena() [2/2]
| SAMRAI::tbox::StandardArena::StandardArena |
( |
const StandardArena & |
| ) |
|
|
private |
◆ alloc()
| virtual void* SAMRAI::tbox::StandardArena::alloc |
( |
const size_t |
bytes | ) |
|
|
virtual |
◆ free()
| virtual void SAMRAI::tbox::StandardArena::free |
( |
void * |
p | ) |
|
|
virtual |
◆ operator=()
| void SAMRAI::tbox::StandardArena::operator= |
( |
const StandardArena & |
| ) |
|
|
private |
◆ align()
| static size_t SAMRAI::tbox::Arena::align |
( |
const size_t |
bytes | ) |
|
|
staticinherited |
Static arena function to compute alignment for memory allocation. Data allocations less than the alignment size are rounded up to the next multiple of the allocation size. All data allocations are aligned on 16 byte boundaries. Thus, a memory allocation of only 9 bytes will actually return a 16 byte chunk of memory.
The documentation for this class was generated from the following file: