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

A deserializer for ETL expressions. More...

#include <deserializer.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>
 deserializer (Args &&... args)
 Construct the deserializer by forwarding the arguments to the stream. More...
 
template<typename T >
deserializeroperator>> (T &value)
 Reads a value of the given type from the stream. More...
 

Public Attributes

stream_t stream
 The stream.
 

Detailed Description

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

A deserializer for ETL expressions.

Constructor & Destructor Documentation

◆ deserializer()

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

Construct the deserializer 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 >
deserializer& etl::deserializer< Stream >::operator>> ( T &  value)
inline

Reads a value of the given type from the stream.

Parameters
valueReference to the value where to write
Returns
the deserializer

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