ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Fields | Public Methods | List of all members
SelfContained< TContained >::Fields Struct Reference

#include <selfcontained.hpp>

Collaboration diagram for SelfContained< TContained >::Fields:
[legend]

Class Description

template<typename TContained>
struct aworx::lib::monomem::SelfContained< TContained >::Fields

The data members that are allocated in the first chunk of the allocator.

Definition at line 93 of file selfcontained.hpp.

Public Fields

MonoAllocator allocator
 
TContained custom
 
MonoAllocator::Snapshot snapshot
 

Public Methods

template<typename... TArgs>
 Fields (MonoAllocator::Chunk *firstChunk, size_t initialChunkSize, unsigned int chunkGrowthInPercent, TArgs &&... args)
 

Constructor & Destructor Documentation

◆ Fields()

Fields ( MonoAllocator::Chunk firstChunk,
size_t  initialChunkSize,
unsigned int  chunkGrowthInPercent,
TArgs &&...  args 
)
inline

Constructor.

Template Parameters
TArgsThe argument types used for constructing TContained.
Parameters
firstChunkThe first argument to field allocator.
initialChunkSizeThe second argument to field allocator.
chunkGrowthInPercentGrowth faktor in percent (*100), applied to each allocation of a next chunk size. Values provided should be greater than 100.
argsThe arguments to construct the instance of TContained.

Definition at line 116 of file selfcontained.hpp.

Member Data Documentation

◆ allocator

MonoAllocator allocator

The allocator that this class is contained in.

Definition at line 96 of file selfcontained.hpp.

◆ custom

TContained custom

The custom fields

Definition at line 102 of file selfcontained.hpp.

◆ snapshot

Snapshot pointing behind this object in the first allocated chunk.

Definition at line 99 of file selfcontained.hpp.


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