...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::mpi::content — A proxy object that transfers the content of an object without its structure.
// In header: <boost/mpi/skeleton_and_content.hpp> class content { public: // construct/copy/destruct content(); content(MPI_Datatype, bool = true); content& operator=(MPI_Datatype); // public member functions MPI_Datatype get_mpi_datatype() const; void commit(); };
The content
class indicates that Boost.MPI should transmit or receive the content of an object, but without any information about the structure of the object. It is only meaningful to transmit the content of an object after the receiver has already received the skeleton for the same object.
Most users will not use content
objects directly. Rather, they will invoke send
, recv
, or broadcast
operations using get_content()
.
content
public
construct/copy/destructcontent();
Constructs an empty content
object. This object will not be useful for any Boost.MPI operations until it is reassigned.
content(MPI_Datatype d, bool committed = true);
This routine initializes the content
object with an MPI data type that refers to the content of an object without its structure.
Parameters: |
|
content& operator=(MPI_Datatype d);
Replace the MPI data type referencing the content of an object.
Parameters: |
|
||
Returns: |
*this |