18#ifndef ATLALLOCATORS_ARENAHANDLEBASE_H
19#define ATLALLOCATORS_ARENAHANDLEBASE_H
Common base class for arena allocator classes. See Arena.h for an overview of the arena-based memory ...
A pointer type that holds a lock on an allocator object.
Common base class for arena allocator classes.
Part of Arena dealing with the list of allocators.
const ArenaAllocatorBase * baseAllocator() const
Return the current Allocator which we are referencing.
ArenaHandleBase(ArenaHeader *header, size_t index)
Constructor.
ArenaAllocatorBase * baseAllocator()
Return the current Allocator which we are referencing.
void reset()
Free all allocated elements (of this type in the current Arena).
void reserve(size_t size)
Set the total number of elements cached by the allocator (in the current Arena).
void erase()
Free all allocated elements and release memory back to the system (of this type in the current Arena)...
ArenaAllocatorBase::Stats stats() const
Return the statistics block for this allocator, for the current Arena.
LockedAllocator m_allocator
The associated allocator object.
A pointer type that holds a lock on an allocator object.
Statistics for an allocator.