ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor > Struct Template Reference

Helper to initialize a parameters structure. More...

#include <ArenaAllocatorBase.h>

Inheritance diagram for SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >:
Collaboration diagram for SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >:

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...
 

Detailed Description

template<typename T, bool clear = false, bool no_ctor = false, bool no_dtor = false>
struct SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >

Helper to initialize a parameters structure.

This creates a Params class appropriately initialized for class T. Assumptions made:

If these are not appropriate, you can derive from this class and make the appropriate changes.

Definition at line 315 of file ArenaAllocatorBase.h.

Constructor & Destructor Documentation

◆ initParams()

template<typename T , bool clear = false, bool no_ctor = false, bool no_dtor = false>
SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::initParams ( size_t  nblock = 1000,
const std::string &  name = "" 
)

Constructor.

Parameters
nblockValue to set in the parameters structure for the number of elements to allocate per block.
nameValue to set in the parameters structure for the allocator name.

Member Function Documentation

◆ operator Params()

template<typename T , bool clear = false, bool no_ctor = false, bool no_dtor = false>
SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::operator Params ( ) const
inline

Return an initialized parameters structure.

Definition at line 335 of file ArenaAllocatorBase.h.

335 { return params(); }

◆ params()

template<typename T , bool clear = false, bool no_ctor = false, bool no_dtor = false>
Params SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::params ( ) const

Return an initialized parameters structure.

Member Data Documentation

◆ m_name

template<typename T , bool clear = false, bool no_ctor = false, bool no_dtor = false>
std::string SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::m_name
private

Saved value of the allocator name.

Definition at line 343 of file ArenaAllocatorBase.h.

◆ m_nblock

template<typename T , bool clear = false, bool no_ctor = false, bool no_dtor = false>
size_t SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::m_nblock
private

Saved value of the number of elements to allocate per block.

Definition at line 340 of file ArenaAllocatorBase.h.


The documentation for this struct was generated from the following file:
SG::ArenaAllocatorBase::initParams::params
Params params() const
Return an initialized parameters structure.