ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
SG::ArenaHeapSTLAllocator_initParams< T > Class Template Reference

Initializer for pool allocator parameters. More...

#include <ArenaHeapSTLAllocator.h>

Inheritance diagram for SG::ArenaHeapSTLAllocator_initParams< T >:
Collaboration diagram for SG::ArenaHeapSTLAllocator_initParams< T >:

Public Types

typedef ArenaHeapAllocator::initParams< T, false, true, true > Base
 We take defaults from this. More...
 

Public Member Functions

 ArenaHeapSTLAllocator_initParams (size_t nblock=1000, const std::string &name="")
 Constructor. More...
 
ArenaAllocatorBase::Params params () const
 Return an initialized parameters structure. More...
 
 operator ArenaAllocatorBase::Params () const
 Return an initialized parameters structure. More...
 
ArenaAllocatorBase::Params params () const
 Return an initialized parameters structure. More...
 
 operator ArenaAllocatorBase::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<class T>
class SG::ArenaHeapSTLAllocator_initParams< T >

Initializer for pool allocator parameters.

   We override the defaults to disable calling the payload ctor/dtor.

Definition at line 61 of file ArenaHeapSTLAllocator.h.

Member Typedef Documentation

◆ Base

template<class T >
typedef ArenaHeapAllocator::initParams<T, false, true, true> SG::ArenaHeapSTLAllocator_initParams< T >::Base

We take defaults from this.

Definition at line 66 of file ArenaHeapSTLAllocator.h.

Constructor & Destructor Documentation

◆ ArenaHeapSTLAllocator_initParams()

template<class T >
SG::ArenaHeapSTLAllocator_initParams< T >::ArenaHeapSTLAllocator_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 ArenaAllocatorBase::Params() [1/2]

template<class T >
SG::ArenaHeapSTLAllocator_initParams< T >::operator ArenaAllocatorBase::Params ( ) const
inline

Return an initialized parameters structure.

Definition at line 83 of file ArenaHeapSTLAllocator.h.

83 { return params(); }

◆ operator ArenaAllocatorBase::Params() [2/2]

SG::ArenaHeapAllocator::initParams< T, clear, no_ctor, no_dtor >::operator ArenaAllocatorBase::Params
inlineinherited

Return an initialized parameters structure.

Definition at line 107 of file ArenaHeapAllocator.h.

107 { return params(); }

◆ 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
inlineinherited

Return an initialized parameters structure.

Definition at line 335 of file ArenaAllocatorBase.h.

335 { return params(); }

◆ params() [1/2]

template<class T >
ArenaAllocatorBase::Params SG::ArenaHeapSTLAllocator_initParams< T >::params ( ) const

Return an initialized parameters structure.

◆ params() [2/2]

ArenaAllocatorBase::Params SG::ArenaHeapAllocator::initParams< T, clear, no_ctor, no_dtor >::params
inherited

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
privateinherited

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
privateinherited

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

Definition at line 340 of file ArenaAllocatorBase.h.


The documentation for this class was generated from the following file:
SG::ArenaHeapSTLAllocator_initParams::params
ArenaAllocatorBase::Params params() const
Return an initialized parameters structure.
SG::ArenaAllocatorBase::initParams< T, false, true, true >::params
Params params() const
Return an initialized parameters structure.