piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_convert_impl< Series, series_msgpack_convert_enabler< Series > > Struct Template Reference

Specialisation of piranha::msgpack_convert() for piranha::series. More...

#include <piranha/series.hpp>

Public Member Functions

void operator() (Series &s, const msgpack::object &o, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename Series>
struct piranha::msgpack_convert_impl< Series, series_msgpack_convert_enabler< Series > >

Specialisation of piranha::msgpack_convert() for piranha::series.

Note
This specialisation is enabled only if:

Definition at line 3662 of file series.hpp.

Member Function Documentation

◆ operator()()

template<typename Series >
void piranha::msgpack_convert_impl< Series, series_msgpack_convert_enabler< Series > >::operator() ( Series &  s,
const msgpack::object &  o,
msgpack_format  f 
) const
inline

Call operator.

The call operator offers the basic exception safety guarantee: upon deserialization errors, s will be left in an unspecified (but valid) state.

Parameters
sthe output series.
othe msgpack::object that will be converted into s.
fthe desired piranha::msgpack_format.
Exceptions
std::invalid_argumentif o contains an array with an invalid number of elements, or if f is piranha::msgpack_format::portable and the serialized object has been created with a later version of Piranha.
unspecifiedany exception thrown by:

Definition at line 3684 of file series.hpp.


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