piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, Series, series_msgpack_pack_enabler< Stream, Series > > Struct Template Reference

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

#include <piranha/series.hpp>

Public Member Functions

void operator() (msgpack::packer< Stream > &packer, const Series &s, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename Stream, typename Series>
struct piranha::msgpack_pack_impl< Stream, Series, series_msgpack_pack_enabler< Stream, Series > >

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

Note
This specialisation is enabled only if:

Definition at line 3613 of file series.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream , typename Series >
void piranha::msgpack_pack_impl< Stream, Series, series_msgpack_pack_enabler< Stream, Series > >::operator() ( msgpack::packer< Stream > &  packer,
const Series &  s,
msgpack_format  f 
) const
inline

Call operator.

The msgpack representation of a series consists of an array of 2 elements:

  • the list of symbols, represented as an array of strings,
  • the list of terms, represented as an array of coefficient-key pairs.
Parameters
packerthe target msgpack::packer.
sthe input series.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by:

Definition at line 3630 of file series.hpp.


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