17#ifndef ATLALLOCATORS_ARENAALLOCATORREGISTRY_H
18#define ATLALLOCATORS_ARENAALLOCATORREGISTRY_H
57 std::unique_ptr<ArenaAllocatorCreator> creator);
66 size_t lookup (
const std::string& name);
74 std::unique_ptr<ArenaAllocatorBase>
create (
size_t i);
85 std::unique_ptr<ArenaAllocatorRegistryImpl>
m_impl;
Provide an interface for creating an arena Allocator. See Arena.h for an overview of the arena-based ...
Common base class for arena allocator classes.
ArenaAllocatorRegistry implementation class.
std::unique_ptr< ArenaAllocatorBase > create(size_t i)
Create a new instance of an allocator.
size_t registerCreator(const std::string &name, std::unique_ptr< ArenaAllocatorCreator > creator)
Register a new allocator type.
ArenaAllocatorRegistry()
Constructor. Called only by instance.
ArenaAllocatorRegistry & operator=(const ArenaAllocatorRegistry &)
ArenaAllocatorRegistry(const ArenaAllocatorRegistry &)
size_t lookup(const std::string &name)
Look up the index for an allocator type name.
~ArenaAllocatorRegistry()
Destructor. Called only by instance.
friend class ArenaAllocatorRegistryImpl
std::unique_ptr< ArenaAllocatorRegistryImpl > m_impl
The implementation object.
static ArenaAllocatorRegistry * instance()
Return a pointer to the global ArenaAllocatorRegistry instance.