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_oarchive Class Reference

An archive that packs binary data into an MPI buffer. More...

#include <packed_oarchive.hpp>

Inheritance diagram for boost::mpi::packed_oarchive:
Collaboration diagram for boost::mpi::packed_oarchive:

Public Member Functions

 packed_oarchive (MPI_Comm const &comm, buffer_type &b, unsigned int flags=boost::archive::no_header)
 Construct a packed_oarchive for transmission over the given MPI communicator and with an initial buffer. More...
 
 packed_oarchive (MPI_Comm const &comm, unsigned int flags=boost::archive::no_header)
 Construct a packed_oarchive for transmission over the given MPI communicator. More...
 
template<class T >
void save_override (T const &x, int version, mpl::false_)
 
template<class T >
void save_override (T const &x, int, mpl::true_)
 
template<class T >
void save_override (T const &x, int version)
 
void save_override (const archive::class_id_optional_type &, int)
 
void save_override (const archive::class_name_type &t, int)
 
void save_override (archive::class_id_type &t, int version)
 
void save_override (archive::version_type &t, int version)
 

Detailed Description

An archive that packs binary data into an MPI buffer.

The packed_iarchive class is an Archiver (as in the Boost.Serialization library) that packs binary data into a buffer for transmission via MPI. It can operate on any Serializable data type and will use the MPI_Pack function of the underlying MPI implementation to perform serialization.

Constructor & Destructor Documentation

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

Construct a packed_oarchive for transmission over the given MPI communicator and with an initial buffer.

Parameters
commThe communicator over which this archive will be sent.
bA user-defined buffer that will be filled with the binary representation of serialized objects.
flagsControl the serialization of the data types. Refer to the Boost.Serialization documentation before changing the default flags.
positionSet the offset into buffer b at which deserialization will begin.
boost::mpi::packed_oarchive::packed_oarchive ( MPI_Comm const &  comm,
unsigned int  flags = boost::archive::no_header 
)
inline

Construct a packed_oarchive for transmission over the given MPI communicator.

Parameters
commThe communicator over which this archive will be sent.
sThe size of the buffer to 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_oarchive::save_override ( T const &  x,
int  version,
mpl::false_   
)
inline
template<class T >
void boost::mpi::packed_oarchive::save_override ( T const &  x,
int  ,
mpl::true_   
)
inline
template<class T >
void boost::mpi::packed_oarchive::save_override ( T const &  x,
int  version 
)
inline

References boost::detail::type.

void boost::mpi::packed_oarchive::save_override ( const archive::class_id_optional_type ,
int   
)
inline
void boost::mpi::packed_oarchive::save_override ( const archive::class_name_type t,
int   
)
inline

References boost::asio::s.

void boost::mpi::packed_oarchive::save_override ( archive::class_id_type t,
int  version 
)
inline
void boost::mpi::packed_oarchive::save_override ( archive::version_type t,
int  version 
)
inline

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