ATLAS Offline Software
Public Attributes | List of all members
SG::ArenaAllocatorBase::Params Struct Reference

Allocator parameters. More...

#include <ArenaAllocatorBase.h>

Collaboration diagram for SG::ArenaAllocatorBase::Params:

Public Attributes

std::string name
 The name of this allocator. More...
 
size_t eltSize
 The size in bytes of the individual elements we're allocating. More...
 
size_t minSize
 The minimum size that this Allocator allows for an element. More...
 
size_t nblock
 The number of elements we should allocate in a single block (hint only). More...
 
size_t linkOffset
 Offset from the start of a free element to a pointer to be used by the allocator. More...
 
func_tconstructor
 Constructor function for elements. More...
 
func_tdestructor
 Destructor function for elements. More...
 
func_tclear
 Clear function for elements. More...
 
bool canReclear
 If true, clear can be called more than once on a given element. More...
 
bool mustClear
 If true, the clear call cannot be skipped before destructor. More...
 

Detailed Description

Allocator parameters.

See above for more details.

Definition at line 149 of file ArenaAllocatorBase.h.

Member Data Documentation

◆ canReclear

bool SG::ArenaAllocatorBase::Params::canReclear

If true, clear can be called more than once on a given element.

Definition at line 178 of file ArenaAllocatorBase.h.

◆ clear

func_t* SG::ArenaAllocatorBase::Params::clear

Clear function for elements.

Definition at line 175 of file ArenaAllocatorBase.h.

◆ constructor

func_t* SG::ArenaAllocatorBase::Params::constructor

Constructor function for elements.

Definition at line 170 of file ArenaAllocatorBase.h.

◆ destructor

func_t* SG::ArenaAllocatorBase::Params::destructor

Destructor function for elements.

Definition at line 172 of file ArenaAllocatorBase.h.

◆ eltSize

size_t SG::ArenaAllocatorBase::Params::eltSize

The size in bytes of the individual elements we're allocating.

Definition at line 155 of file ArenaAllocatorBase.h.

◆ linkOffset

size_t SG::ArenaAllocatorBase::Params::linkOffset

Offset from the start of a free element to a pointer to be used by the allocator.

Only used if the allocator requires it.

Definition at line 166 of file ArenaAllocatorBase.h.

◆ minSize

size_t SG::ArenaAllocatorBase::Params::minSize

The minimum size that this Allocator allows for an element.

Definition at line 158 of file ArenaAllocatorBase.h.

◆ mustClear

bool SG::ArenaAllocatorBase::Params::mustClear

If true, the clear call cannot be skipped before destructor.

Definition at line 181 of file ArenaAllocatorBase.h.

◆ name

std::string SG::ArenaAllocatorBase::Params::name

The name of this allocator.

Definition at line 152 of file ArenaAllocatorBase.h.

◆ nblock

size_t SG::ArenaAllocatorBase::Params::nblock

The number of elements we should allocate in a single block (hint only).

Definition at line 162 of file ArenaAllocatorBase.h.


The documentation for this struct was generated from the following file: