ATLAS Offline Software
Loading...
Searching...
No Matches
ArenaHeapAllocator.h File Reference

Heap-based allocator. See Arena.h for an overview of the arena-based memory allocators. More...

Include dependency graph for ArenaHeapAllocator.h:
This graph shows which files directly or indirectly include this file:

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 &params)
 Constructor.
virtual SG::~ArenaHeapAllocator ()
 Destructor.
 SG::ArenaHeapAllocator (const ArenaHeapAllocator &)=delete
 Don't allow copy construction or assignment.
ArenaHeapAllocatorSG::operator= (const ArenaHeapAllocator &)=delete
 SG::ArenaHeapAllocator (ArenaHeapAllocator &&other)
 Move constructor.
ArenaHeapAllocatorSG::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.

Detailed Description

Heap-based allocator. See Arena.h for an overview of the arena-based memory allocators.

Author
scott snyder
Date
May 2007

Definition in file ArenaHeapAllocator.h.