Muster
 All Classes Namespaces Files Functions Variables Typedefs Macros
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

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

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 Thu Sep 1 2016 using Doxygen 1.8.5