Classes | Namespaces | Functions

src/id_pair.h File Reference

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>
Include dependency graph for id_pair.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.

Muster. Copyright © 2010, Lawrence Livermore National Laboratory, LLNL-CODE-433662.
Distribution of Muster and its documentation is subject to terms of the Muster LICENSE.
Generated on Mon Dec 20 2010 using Doxygen 1.7.2