ATLAS Offline Software
Loading...
Searching...
No Matches
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.
size_t eltSize = 0
 The size in bytes of the individual elements we're allocating.
size_t minSize = 0
 The minimum size that this Allocator allows for an element.
size_t nblock = 0
 The number of elements we should allocate in a single block (hint only).
size_t linkOffset = 0
 Offset from the start of a free element to a pointer to be used by the allocator.
func_tconstructor = nullptr
 Constructor function for elements.
func_tdestructor = nullptr
 Destructor function for elements.
func_tclear = nullptr
 Clear function for elements.
bool canReclear = false
 If true, clear can be called more than once on a given element.
bool mustClear = false
 If true, the clear call cannot be skipped before destructor.

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 = false

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 = nullptr

Clear function for elements.

Definition at line 175 of file ArenaAllocatorBase.h.

◆ constructor

func_t* SG::ArenaAllocatorBase::Params::constructor = nullptr

Constructor function for elements.

Definition at line 170 of file ArenaAllocatorBase.h.

◆ destructor

func_t* SG::ArenaAllocatorBase::Params::destructor = nullptr

Destructor function for elements.

Definition at line 172 of file ArenaAllocatorBase.h.

◆ eltSize

size_t SG::ArenaAllocatorBase::Params::eltSize = 0

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 = 0

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 = 0

The minimum size that this Allocator allows for an element.

Definition at line 158 of file ArenaAllocatorBase.h.

◆ mustClear

bool SG::ArenaAllocatorBase::Params::mustClear = false

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 = 0

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: