piranha  0.10
Public Member Functions | List of all members
piranha::boost_load_via_boost_api< Archive, T > Struct Template Reference

Implementation of piranha::boost_load() via the Boost API. More...

#include <piranha/s11n.hpp>

Inheritance diagram for piranha::boost_load_via_boost_api< Archive, T >:
Inheritance graph
[legend]

Public Member Functions

void operator() (Archive &ar, T &x) const
 Call operator. More...
 

Detailed Description

template<typename Archive, typename T>
struct piranha::boost_load_via_boost_api< Archive, T >

Implementation of piranha::boost_load() via the Boost API.

This class can be used to implement piranha::boost_load() via a direct call to the Boost serialization API.

Definition at line 363 of file s11n.hpp.

Member Function Documentation

◆ operator()()

template<typename Archive, typename T>
void piranha::boost_load_via_boost_api< Archive, T >::operator() ( Archive &  ar,
T &  x 
) const
inline

Call operator.

The body of this operator is equivalent to:

ar >> x;

That is, the content of ar will loaded into x using the stream extraction operator. In order for this method to be callable, the type T must provide valid overloads of the methods/functions needed by the Boost serialization API.

Parameters
arthe source archive.
xthe object into which the content of ar will be deserialized.
Exceptions
unspecifiedany exception thrown by the extraction of ar into x.

Definition at line 379 of file s11n.hpp.


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