Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::mpi::packed_iarchive Class Reference

An archive that unpacks binary data from an MPI buffer. More...

#include <packed_iarchive.hpp>

Inheritance diagram for boost::mpi::packed_iarchive:
Collaboration diagram for boost::mpi::packed_iarchive:

Public Member Functions

 packed_iarchive (MPI_Comm const &comm, buffer_type &b, unsigned int flags=boost::archive::no_header, int position=0)
 Construct a packed_iarchive to receive data over the given MPI communicator and with an initial buffer. More...
 
 packed_iarchive (MPI_Comm const &comm, std::size_t s=0, unsigned int flags=boost::archive::no_header)
 Construct a packed_iarchive to receive data over the given MPI communicator. More...
 
template<class T >
void load_override (T &x, int version, mpl::false_)
 
template<class T >
void load_override (T &x, int, mpl::true_)
 
template<class T >
void load_override (T &x, int version)
 
void load_override (archive::class_id_optional_type &, int)
 
void load_override (archive::class_id_type &t, int version)
 
void load_override (archive::version_type &t, int version)
 
void load_override (archive::class_id_reference_type &t, int version)
 
void load_override (archive::class_name_type &t, int)
 

Detailed Description

An archive that unpacks binary data from an MPI buffer.

The packed_oarchive class is an Archiver (as in the Boost.Serialization library) that unpacks binary data from a buffer received via MPI. It can operate on any Serializable data type and will use the MPI_Unpack function of the underlying MPI implementation to perform deserialization.

Constructor & Destructor Documentation

boost::mpi::packed_iarchive::packed_iarchive ( MPI_Comm const &  comm,
buffer_type &  b,
unsigned int  flags = boost::archive::no_header,
int  position = 0 
)
inline

Construct a packed_iarchive to receive data over the given MPI communicator and with an initial buffer.

Parameters
commThe communicator over which this archive will be received.
bA user-defined buffer that contains the binary representation of serialized objects.
flagsControl the serialization of the data types. Refer to the Boost.Serialization documentation before changing the default flags.
boost::mpi::packed_iarchive::packed_iarchive ( MPI_Comm const &  comm,
std::size_t  s = 0,
unsigned int  flags = boost::archive::no_header 
)
inline

Construct a packed_iarchive to receive data over the given MPI communicator.

Parameters
commThe communicator over which this archive will be received.
flagsControl the serialization of the data types. Refer to the Boost.Serialization documentation before changing the default flags.

Member Function Documentation

template<class T >
void boost::mpi::packed_iarchive::load_override ( T x,
int  version,
mpl::false_   
)
inline
template<class T >
void boost::mpi::packed_iarchive::load_override ( T x,
int  ,
mpl::true_   
)
inline
template<class T >
void boost::mpi::packed_iarchive::load_override ( T x,
int  version 
)
inline
void boost::mpi::packed_iarchive::load_override ( archive::class_id_optional_type ,
int   
)
inline
void boost::mpi::packed_iarchive::load_override ( archive::class_id_type t,
int  version 
)
inline

References boost::flyweights::x.

void boost::mpi::packed_iarchive::load_override ( archive::version_type t,
int  version 
)
inline

References boost::flyweights::x.

void boost::mpi::packed_iarchive::load_override ( archive::class_id_reference_type t,
int  version 
)
inline
void boost::mpi::packed_iarchive::load_override ( archive::class_name_type t,
int   
)
inline

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