Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class packed_oarchive

boost::mpi::packed_oarchive — An archive that packs binary data into an MPI buffer.

Synopsis

// In header: <boost/mpi/packed_oarchive.hpp>


class packed_oarchive : public  {
public:
  // construct/copy/destruct
  (, ,  = );
  (,  = );

  // public member functions
  template<typename T>  (, );
  template<typename T>  (, );
  template<typename T>  ();
   ();
   ();
   ();
   ();
};

Description

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.

packed_oarchive public construct/copy/destruct

  1. ( comm,  b,  flags = );

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

    Parameters:

    b

    A user-defined buffer that will be filled with the binary representation of serialized objects.

    comm

    The communicator over which this archive will be sent.

    flags

    Control the serialization of the data types. Refer to the Boost.Serialization documentation before changing the default flags.

  2. ( comm,  flags = );

    Construct a packed_oarchive for transmission over the given MPI communicator.

    Parameters:

    comm

    The communicator over which this archive will be sent.

    flags

    Control the serialization of the data types. Refer to the Boost.Serialization documentation before changing the default flags.

packed_oarchive public member functions

  1. template<typename T>  ( x, );
  2. template<typename T>  ( x, );
  3. template<typename T>  ( x);
  4.  ();
  5.  ( t);
  6.  ( t);
  7.  ( t);

PrevUpHomeNext