herald
2.0.0
|
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 Data & | get (std::size_t index) noexcept |
Returns the DataRef at the relevant index, or an empty DataRef. | |
const Data & | operator[] (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 |
Represents a fixed array of Data references using the default memory arena that tracks its own in-use size.