ATLAS Offline Software
|
Concrete ArenaAllocatorCreator class used to create the Allocator for this handle. More...
Public Types | |
typedef std::unique_ptr< ArenaAllocatorBase > | makeFunc_t(const typename ALLOC::Params &) |
Type for m_makeFunc — a function returning a new Allocator from a parameters structure. More... | |
Public Member Functions | |
Creator (const std::string &name, makeFunc_t *makeFunc, const typename ALLOC::Params ¶ms) | |
Constructor. More... | |
virtual std::unique_ptr< ArenaAllocatorBase > | create () |
Create an allocator instance. More... | |
const std::string & | name () const |
Return the name of the Allocator we create. More... | |
Protected Attributes | |
makeFunc_t * | m_makeFunc |
Function that creates an Allocator given a set of parameters. More... | |
ALLOC::Params | m_params |
Set of parameters to use to create our allocator. More... | |
Concrete ArenaAllocatorCreator class used to create the Allocator for this handle.
There are two members of this class: m_makeFunc
is the function which actually creates the Allocator, and m_params
is the parameters structure to pass to the new Allocator. These will get filled in by ArenaAllocatorCreatorInit
, which derives from this.
Definition at line 132 of file ArenaHandleBaseAllocT.h.
typedef std::unique_ptr<ArenaAllocatorBase> SG::ArenaHandleBaseAllocT< ALLOC >::Creator::makeFunc_t(const typename ALLOC::Params &) |
Type for m_makeFunc
— a function returning a new Allocator from a parameters structure.
Definition at line 139 of file ArenaHandleBaseAllocT.h.
SG::ArenaHandleBaseAllocT< ALLOC >::Creator::Creator | ( | const std::string & | name, |
makeFunc_t * | makeFunc, | ||
const typename ALLOC::Params & | params | ||
) |
Constructor.
name | Name of the Allocator. |
makeFunc | Function that creates an Allocator given a set of parameters. |
params | Allocator parameters. |
This initializes the Creator
for creating an Allocator. The name in params
will be replaced with the name
argument.
|
virtual |
Create an allocator instance.
Implements SG::ArenaAllocatorCreator.
const std::string& SG::ArenaHandleBaseAllocT< ALLOC >::Creator::name | ( | ) | const |
Return the name of the Allocator we create.
|
protected |
Function that creates an Allocator given a set of parameters.
Definition at line 170 of file ArenaHandleBaseAllocT.h.
|
protected |
Set of parameters to use to create our allocator.
Definition at line 173 of file ArenaHandleBaseAllocT.h.