A small helper class used while sorting a pair of value and its index in an array/vector. More...
#include <indexHolder.h>
Public Member Functions | |
Constructors and Destructor | |
IndexHolder () | |
IndexHolder (T v, unsigned long i) | |
IndexHolder (const IndexHolder< T > &rhs) | |
~IndexHolder () | |
Static Public Member Functions | |
static bool | lessThan (const IndexHolder< T > &a, const IndexHolder< T > &b) |
Public Attributes | |
unsigned long | index |
T | value |
Overload Operators | |
IndexHolder< T > & | operator= (const IndexHolder< T > &other) |
bool | operator< (IndexHolder< T > const &other) const |
bool | operator> (IndexHolder< T > const &other) const |
bool | operator<= (IndexHolder< T > const &other) const |
bool | operator>= (IndexHolder< T > const &other) const |
bool | operator== (IndexHolder< T > const &other) const |
bool | operator!= (IndexHolder< T > const &other) const |
std::ostream & | operator<< (std::ostream &os, const IndexHolder &dt) |
A small helper class used while sorting a pair of value and its index in an array/vector.
Definition at line 20 of file indexHolder.h.
|
inline |
Definition at line 27 of file indexHolder.h.
|
inline |
Definition at line 31 of file indexHolder.h.
|
inline |
Definition at line 32 of file indexHolder.h.
|
inline |
Definition at line 37 of file indexHolder.h.
|
inlinestatic |
Definition at line 46 of file indexHolder.h.
|
inline |
Definition at line 99 of file indexHolder.h.
|
inline |
Definition at line 67 of file indexHolder.h.
|
inline |
Definition at line 81 of file indexHolder.h.
|
inline |
Definition at line 52 of file indexHolder.h.
|
inline |
Definition at line 95 of file indexHolder.h.
|
inline |
Definition at line 74 of file indexHolder.h.
|
inline |
Definition at line 88 of file indexHolder.h.
|
friend |
Definition at line 61 of file indexHolder.h.
unsigned long IndexHolder< T >::index |
Definition at line 22 of file indexHolder.h.
T IndexHolder< T >::value |
Definition at line 23 of file indexHolder.h.