ATLAS Offline Software
|
Helper to initialize a parameters structure. More...
#include <ArenaAllocatorBase.h>
Public Member Functions | |
initParams (size_t nblock=1000, const std::string &name="") | |
Constructor. More... | |
Params | params () const |
Return an initialized parameters structure. More... | |
operator Params () const | |
Return an initialized parameters structure. More... | |
Private Attributes | |
size_t | m_nblock |
Saved value of the number of elements to allocate per block. More... | |
std::string | m_name |
Saved value of the allocator name. More... | |
Helper to initialize a parameters structure.
This creates a Params
class appropriately initialized for class T
. Assumptions made:
clear
is true.canReclear
is true
and mustClear
is false
.If these are not appropriate, you can derive from this class and make the appropriate changes.
Definition at line 315 of file ArenaAllocatorBase.h.
SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::initParams | ( | size_t | nblock = 1000 , |
const std::string & | name = "" |
||
) |
|
inline |
Params SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::params | ( | ) | const |
Return an initialized parameters structure.
|
private |
Saved value of the allocator name.
Definition at line 343 of file ArenaAllocatorBase.h.
|
private |
Saved value of the number of elements to allocate per block.
Definition at line 340 of file ArenaAllocatorBase.h.