Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit b3176dd2ba.
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 iprimitive {
public:

  // public member functions
  packed_iarchive(MPI_Comm const &, buffer_type &, 
                  unsigned int = boost::archive::no_header, int = 0);
  packed_iarchive(MPI_Comm const &, std::size_t = 0, 
                  unsigned int = boost::archive::no_header);
  template<typename T> void load_override(T &, mpl::false_);
  template<typename T> void load_override(T &, mpl::true_);
  template<typename T> void load_override(T &);
  void load_override(archive::class_id_optional_type &);
  void load_override(archive::class_id_type &);
  void load_override(archive::version_type &);
  void load_override(archive::class_id_reference_type &);
  void load_override(archive::class_name_type &);
};

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. 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.

    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. 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.

    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> void load_override(T & x, mpl::false_);
  4. template<typename T> void load_override(T & x, mpl::true_);
  5. template<typename T> void load_override(T & x);
  6. void load_override(archive::class_id_optional_type &);
  7. void load_override(archive::class_id_type & t);
  8. void load_override(archive::version_type & t);
  9. void load_override(archive::class_id_reference_type & t);
  10. void load_override(archive::class_name_type & t);

PrevUpHomeNext