Common base class for arena allocator classes. See Arena.h for an overview of the arena-based memory ...
Collection of memory allocators with a common lifetime, plus subsystem summary.
ArenaBase(const std::string &name="")
Constructor.
const std::string & name() const
Return this Arena's name.
ArenaBase * m_prev
The previously-current arena.
ArenaHeader * m_header
The ArenaHeader for the stack we're managing.
Push(Arena &a)
Constructor.
ArenaHeader * header()
Return the ArenaHeader with which this Arena is associated.
ArenaBase * makeCurrent()
Make this Arena the current one for its ArenaHeader.
Arena(const std::string &name, ArenaHeader *header=0)
Constructor.
ArenaHeader * m_header
The ArenaHeader with which we're associated.