piranha  0.10
Public Member Functions | List of all members
piranha::boost_load_impl< Archive, mp_integer< SSize >, mp_integer_boost_load_enabler< Archive > > Struct Template Reference

Specialisation of piranha::boost_load() for piranha::mp_integer. More...

#include <piranha/mp_integer.hpp>

Inheritance diagram for piranha::boost_load_impl< Archive, mp_integer< SSize >, mp_integer_boost_load_enabler< Archive > >:
Inheritance graph
[legend]
Collaboration diagram for piranha::boost_load_impl< Archive, mp_integer< SSize >, mp_integer_boost_load_enabler< Archive > >:
Collaboration graph
[legend]

Public Member Functions

void operator() (Archive &ar, mp_integer< SSize > &x) const
 Call operator. More...
 

Detailed Description

template<typename Archive, std::size_t SSize>
struct piranha::boost_load_impl< Archive, mp_integer< SSize >, mp_integer_boost_load_enabler< Archive > >

Specialisation of piranha::boost_load() for piranha::mp_integer.

Note
This specialisation is enabled only if std::string and all the integral types in terms of which piranha::mp_integer is implemented satisfy piranha::has_boost_load.

If Archive is boost::archive::binary_iarchive, this specialisation offers the basic exception guarantee and performs minimal checking of the input data.

Exceptions
std::invalid_argumentif the serialized integer is static and its number of limbs is greater than SSize.
std::overflow_errorif the number of limbs is larger than an implementation-defined value.
unspecifiedany exception thrown by piranha::boost_load(), or by the constructor of piranha::mp_integer from string.

Definition at line 790 of file mp_integer.hpp.

Member Function Documentation

◆ operator()()

void piranha::boost_load_via_boost_api< Archive, mp_integer< SSize > >::operator() ( Archive &  ar,
mp_integer< SSize > &  x 
) const
inlineinherited

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: