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

Initializer for pool allocator parameters. More...

#include <ArenaPoolSTLAllocator.h>

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

Public Types

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

Public Member Functions

 ArenaPoolSTLAllocator_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...
 
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<class T>
class SG::ArenaPoolSTLAllocator_initParams< T >

Initializer for pool allocator parameters.

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

Definition at line 72 of file ArenaPoolSTLAllocator.h.

Member Typedef Documentation

◆ Base

template<class T >
typedef ArenaAllocatorBase::initParams<T, false, true, true> SG::ArenaPoolSTLAllocator_initParams< T >::Base

We take defaults from this.

Definition at line 77 of file ArenaPoolSTLAllocator.h.

Constructor & Destructor Documentation

◆ ArenaPoolSTLAllocator_initParams()

template<class T >
SG::ArenaPoolSTLAllocator_initParams< T >::ArenaPoolSTLAllocator_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()

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

Return an initialized parameters structure.

Definition at line 94 of file ArenaPoolSTLAllocator.h.

94 { return params(); }

◆ operator Params()

SG::ArenaAllocatorBase::initParams< T, clear, no_ctor, no_dtor >::operator Params
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::ArenaPoolSTLAllocator_initParams< T >::params ( ) const

Return an initialized parameters structure.

◆ params() [2/2]

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

Return an initialized parameters structure.

Member Data Documentation

◆ m_name

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

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::ArenaAllocatorBase::initParams< T, false, true, true >::params
Params params() const
Return an initialized parameters structure.
SG::ArenaPoolSTLAllocator_initParams::params
ArenaAllocatorBase::Params params() const
Return an initialized parameters structure.