MPI-packable, templated struct for shipping around an MPI-packable object plus the id of the process it came from. More...
#include <mpi.h>
#include "mpi_bindings.h"
#include <cstdlib>
#include <ostream>
Go to the source code of this file.
Classes | |
struct | id_pair< T > |
MPI-packable struct for an MPI-packable type plus its object id. More... | |
Namespaces | |
namespace | cluster |
Namespace for everything in the cluster library. | |
Functions | |
template<class T > | |
id_pair< T > | make_id_pair (const T &elt, int id) |
Helper function for making arbitrary id_pairs with type inference. | |
template<class T > | |
std::ostream & | operator<< (std::ostream &out, const id_pair< T > &p) |
Print out an id_pair as a tuple of its element and its source rank. |
MPI-packable, templated struct for shipping around an MPI-packable object plus the id of the process it came from.
Definition in file id_pair.h.