![]() |
ATLAS Offline Software
|
Heap-based allocator. See Arena.h for an overview of the arena-based memory allocators. More...
#include "AthAllocators/ArenaBlockAllocatorBase.h"#include <cstdlib>#include "AthAllocators/ArenaHeapAllocator.icc"Go to the source code of this file.
Classes | |
| struct | SG::initParams< T, clear, no_ctor, no_dtor > |
| Heap-based allocator. More... | |
Namespaces | |
| namespace | SG |
| Forward declaration. | |
Typedefs | |
| typedef void | SG::iterator |
| typedef void | SG::const_iterator |
Functions | |
| SG::ArenaHeapAllocator (const Params ¶ms) | |
| Constructor. | |
| virtual | SG::~ArenaHeapAllocator () |
| Destructor. | |
| SG::ArenaHeapAllocator (const ArenaHeapAllocator &)=delete | |
| Don't allow copy construction or assignment. | |
| ArenaHeapAllocator & | SG::operator= (const ArenaHeapAllocator &)=delete |
| SG::ArenaHeapAllocator (ArenaHeapAllocator &&other) | |
| Move constructor. | |
| ArenaHeapAllocator & | SG::operator= (ArenaHeapAllocator &&other) |
| Move assignment. | |
| void | SG::swap (ArenaHeapAllocator &other) |
| Swap. | |
| pointer | SG::allocate () |
| Allocate a new element. | |
| void | SG::free (pointer p) |
| Free an element. | |
| virtual void | SG::reset () override |
| Free all allocated elements. | |
| virtual void | SG::erase () override final |
| Free all allocated elements and release memory back to the system. | |
| void | SG::slowClear () |
Call clear() for all allocated elements. | |
| pointer | SG::refill () |
| Add more free elements to the pool, and allocate a new element. | |
| pointer & | SG::link (pointer p) const |
| Return a reference to the link for an element. | |
Variables | |
| pointer | SG::m_freeptr |
| Pointer to the next free element. | |
Heap-based allocator. See Arena.h for an overview of the arena-based memory allocators.
Definition in file ArenaHeapAllocator.h.