herald  2.0.0
Public Member Functions | Static Public Attributes | List of all members
herald::datatype::DataSections< maxSize > Class Template Reference

Represents a fixed array of Data references using the default memory arena that tracks its own in-use size. More...

#include <data.h>

Public Member Functions

 DataSections () noexcept
 Default constructors. No memory allocation other than size (8 bytes)
 
 ~DataSections () noexcept=default
 Default destructor.
 
void append (const Data &toCopy) noexcept
 Adds a new section, if room exists. Otherwise quietly performs a NO OP.
 
std::size_t size () noexcept
 Returns the number of dataref elements in use.
 
const Dataget (std::size_t index) noexcept
 Returns the DataRef at the relevant index, or an empty DataRef.
 
const Dataoperator[] (std::size_t index) noexcept
 Returns the DataRef at the relevant index, or an empty DataRef.
 

Static Public Attributes

static constexpr std::size_t MaxSize = maxSize
 

Detailed Description

template<std::size_t maxSize = 8>
class herald::datatype::DataSections< maxSize >

Represents a fixed array of Data references using the default memory arena that tracks its own in-use size.


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