Expression Templates Library (ETL)
Public Types | Public Member Functions | Public Attributes | List of all members
etl::serializer< Stream > Struct Template Reference

A serializer for ETL expressions. More...

#include <serializer.hpp>

Public Types

using stream_t = Stream
 The type of stream to use.
 
using char_t = typename stream_t::char_type
 The char type of the stream.
 

Public Member Functions

template<typename... Args>
 serializer (Args &&... args)
 Construct the serializer by forwarding the arguments to the stream. More...
 
template<typename T >
serializeroperator<< (const T &value)
 Outputs the given value to the stream. More...
 

Public Attributes

stream_t stream
 The stream.
 

Detailed Description

template<typename Stream>
struct etl::serializer< Stream >

A serializer for ETL expressions.

Constructor & Destructor Documentation

◆ serializer()

template<typename Stream>
template<typename... Args>
etl::serializer< Stream >::serializer ( Args &&...  args)
inlineexplicit

Construct the serializer by forwarding the arguments to the stream.

Parameters
argsThe arguments to forward to the stream constructor

Member Function Documentation

◆ operator<<()

template<typename Stream>
template<typename T >
serializer& etl::serializer< Stream >::operator<< ( const T &  value)
inline

Outputs the given value to the stream.

Parameters
valueThe value to write to the stream
Returns
the serializer

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