11#ifndef __INDEX_HOLDER_H_
12#define __INDEX_HOLDER_H_
53 if (
this != &other ) {
62 os <<
"idx-hldr: " << dt.
value <<
":" << dt.
index << std::endl;
110 template <
typename T>
113 template <
typename T>
118 static bool first =
true;
119 static MPI_Datatype datatype;
139 MPI_Type_commit(&datatype);
A small helper class used while sorting a pair of value and its index in an array/vector.
bool operator<(IndexHolder< T > const &other) const
IndexHolder(T v, unsigned long i)
bool operator!=(IndexHolder< T > const &other) const
bool operator>(IndexHolder< T > const &other) const
bool operator==(IndexHolder< T > const &other) const
IndexHolder< T > & operator=(const IndexHolder< T > &other)
bool operator<=(IndexHolder< T > const &other) const
IndexHolder(const IndexHolder< T > &rhs)
static bool lessThan(const IndexHolder< T > &a, const IndexHolder< T > &b)
friend std::ostream & operator<<(std::ostream &os, const IndexHolder &dt)
bool operator>=(IndexHolder< T > const &other) const
static MPI_Datatype value()
An abstract class used for communicating messages using user-defined datatypes. The user must impleme...
Collection of Generic Parallel Functions: Sorting, Partitioning, Searching,...