|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef ATLALLOCATORS_ARENAHANDLE_H
19 #define ATLALLOCATORS_ARENAHANDLE_H
70 template <
class T,
class ALLOC>
116 const typename ALLOC::Params*
params =
nullptr);
128 const EventContext& ctx,
129 const typename ALLOC::Params*
params =
nullptr);
155 std::unique_ptr<ArenaAllocatorBase>
183 #endif // not ATLALLOCATORS_ARENAHANDLE_H
User interface for allocating memory.
ArenaHandle(Arena *arena, const typename ALLOC::Params *params=nullptr)
Constructor, passing in an Arena and an optional parameter set.
Base::const_iterator const_iterator
ArenaHandle(ArenaHeader *header, size_t index)
Constructor, passing in an index.
void * allocate()
Allocate a new element.
ArenaHandleBaseT< T, ALLOC > Base
Shorthand for our base class.
Base::iterator iterator
Iterators over elements.
ArenaHandle(ArenaHeader *header, const EventContext &ctx, const typename ALLOC::Params *params=nullptr)
Constructor, passing in a Header, context, and an optional parameter set.
T * pointer
A pointer to the element type we're allocating.
ALLOC::template initParams< T, false, true > defaultParams_t
The class that initializes the default parameter set.
Base::pointer pointer
Pointer to an element.
Collection of memory allocators with a common lifetime,.
ArenaHandle(const typename ALLOC::Params *params=nullptr)
Constructor, passing in an optional parameter set.
Collection of memory allocators with a common lifetime, plus subsystem summary.
ArenaHandle(ArenaHeader *header, const typename ALLOC::Params *params=nullptr)
Constructor, passing in a Header and an optional parameter set.
Base class for Handle classes, containing parts that are independent of how the Allocator gets create...
const ALLOC::Params & params() const
Return our Allocator's parameters.
Base class for Handle classes, containing parts that are independent of how the Allocator gets create...
static std::unique_ptr< ArenaAllocatorBase > makeAllocator(const typename ALLOC::Params ¶ms)
Internal helper: create a new Allocator instance.