Project
Loading...
Searching...
No Matches
o2::algorithm::StaticSequenceAllocator Struct Reference

#include <StaticSequenceAllocator.h>

Public Types

using value_type = unsigned char
 
using BufferType = std::unique_ptr< value_type[]>
 

Public Member Functions

size_t size () const
 
 StaticSequenceAllocator ()=delete
 
template<typename... Targs>
 StaticSequenceAllocator (Targs... args)
 

Public Attributes

BufferType buffer
 
size_t bufferSize
 

Detailed Description

Allocator for a buffer of a static sequence of multiple objects.

The sequence of object types is fixed at compile time and given as a variable list of arguments to the constructor. The data of the objects is runtime dependent.

TODO: probably the Composite struct needs to be reworked to allow this allocator to be more general

Definition at line 136 of file StaticSequenceAllocator.h.

Member Typedef Documentation

◆ BufferType

Definition at line 138 of file StaticSequenceAllocator.h.

◆ value_type

Constructor & Destructor Documentation

◆ StaticSequenceAllocator() [1/2]

o2::algorithm::StaticSequenceAllocator::StaticSequenceAllocator ( )
delete

◆ StaticSequenceAllocator() [2/2]

template<typename... Targs>
o2::algorithm::StaticSequenceAllocator::StaticSequenceAllocator ( Targs...  args)
inline

Definition at line 148 of file StaticSequenceAllocator.h.

Member Function Documentation

◆ size()

size_t o2::algorithm::StaticSequenceAllocator::size ( ) const
inline

Definition at line 143 of file StaticSequenceAllocator.h.

Member Data Documentation

◆ buffer

BufferType o2::algorithm::StaticSequenceAllocator::buffer

Definition at line 140 of file StaticSequenceAllocator.h.

◆ bufferSize

size_t o2::algorithm::StaticSequenceAllocator::bufferSize

Definition at line 141 of file StaticSequenceAllocator.h.


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