Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class packed_iarchive

boost::mpi::packed_iarchive — An archive that unpacks binary data from an MPI buffer.

Synopsis

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


class packed_iarchive : public  {
public:

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

Description

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.

packed_iarchive public member functions

  1. ( comm,  b,  flags = , 
                     position = );

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

    Parameters:

    comm

    The communicator over which this archive will be received.

    b

    A user-defined buffer that contains the binary representation of serialized objects.

    flags

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

  2. ( comm,  s = , 
                     flags = );

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

    Parameters:

    comm

    The communicator over which this archive will be received.

    flags

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

  3. template<typename T>  ( x, );
  4. template<typename T>  ( x, );
  5. template<typename T>  ( x);
  6.  ();
  7.  ( t);
  8.  ( t);
  9.  ( t);
  10.  ( t);

PrevUpHomeNext