43 const EventContext& ctx,
46 allocator (ctx,
index))
Common base class for arena allocator classes. See Arena.h for an overview of the arena-based memory ...
Base class for all Handle classes, containing parts that do not depend on the referenced type....
virtual void reset()=0
Free all allocated elements.
virtual void reserve(size_t size)=0
Set the total number of elements cached by the allocator.
virtual void erase()=0
Free all allocated elements and release memory back to the system.
virtual Stats stats() const =0
Return the statistics block for this allocator.
Part of Arena dealing with the list of allocators.
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.
Statistics for an allocator.