ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::PersistWriter Class Reference

the archive that writes the members of a structure [see store()] More...

#include <ADS/external/Persistence.h>

Public member functions

 PersistWriter (std::ostream &s, ByteOrder o)
 the writer of a payload in the order \( o \) to the stream \( s \)
 PersistWriter (std::vector< std::byte > &b, ByteOrder o)
 the writer of a payload in the order \( o \) appended to the bytes \( b \)
template<class... X>
void operator() (X &... x)
 the members \( x \) written in order
void require (bool, const char *) const noexcept
 nothing, since the members written are those of a structure

Static public attributes

static constexpr bool loading = false
 a writer, never a reader

Detailed description

the archive that writes the members of a structure [see store()]

Constructor and destructor documentation

◆ PersistWriter() [1/2]

ADS::PersistWriter::PersistWriter ( std::ostream & s,
ByteOrder o )

the writer of a payload in the order \( o \) to the stream \( s \)

◆ PersistWriter() [2/2]

ADS::PersistWriter::PersistWriter ( std::vector< std::byte > & b,
ByteOrder o )

the writer of a payload in the order \( o \) appended to the bytes \( b \)

Member function documentation

◆ operator()()

template<class... X>
void ADS::PersistWriter::operator() ( X &... x)
inline

the members \( x \) written in order

◆ require()

void ADS::PersistWriter::require ( bool ,
const char *  ) const
inlinenoexcept

nothing, since the members written are those of a structure

Member data documentation

◆ loading

bool ADS::PersistWriter::loading = false
staticconstexpr

a writer, never a reader


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