Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

seq::IndexHolder< T > Class Template Reference

A small helper class used while sorting a pair of value and its index in an array/vector. More...

#include <indexHolder.h>

List of all members.

Public Member Functions

Constructors and Destructor
 IndexHolder (T *v, unsigned int i)
 IndexHolder ()
 ~IndexHolder ()
Overload Operators
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

Static Public Member Functions

bool lessThan (const IndexHolder< T > &a, const IndexHolder< T > &b)

Public Attributes

unsigned int index
T * value


Detailed Description

template<typename T>
class seq::IndexHolder< T >

A small helper class used while sorting a pair of value and its index in an array/vector.

Author:
Rahul Sampath

Definition at line 20 of file indexHolder.h.


Constructor & Destructor Documentation

template<typename T>
seq::IndexHolder< T >::IndexHolder  )  [inline]
 

Definition at line 27 of file indexHolder.h.

template<typename T>
seq::IndexHolder< T >::IndexHolder T *  v,
unsigned int  i
[inline]
 

Definition at line 28 of file indexHolder.h.

template<typename T>
seq::IndexHolder< T >::~IndexHolder  )  [inline]
 

Definition at line 29 of file indexHolder.h.


Member Function Documentation

template<typename T>
bool seq::IndexHolder< T >::lessThan const IndexHolder< T > &  a,
const IndexHolder< T > &  b
[inline, static]
 

Returns:
a < b

Definition at line 35 of file indexHolder.h.

template<typename T>
bool seq::IndexHolder< T >::operator!= IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 61 of file indexHolder.h.

References seq::IndexHolder< T >::value.

template<typename T>
bool seq::IndexHolder< T >::operator< IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 41 of file indexHolder.h.

template<typename T>
bool seq::IndexHolder< T >::operator<= IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 49 of file indexHolder.h.

template<typename T>
bool seq::IndexHolder< T >::operator== IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 57 of file indexHolder.h.

References seq::IndexHolder< T >::value.

template<typename T>
bool seq::IndexHolder< T >::operator> IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 45 of file indexHolder.h.

References seq::IndexHolder< T >::value.

template<typename T>
bool seq::IndexHolder< T >::operator>= IndexHolder< T > const &  other  )  const [inline]
 

Definition at line 53 of file indexHolder.h.

References seq::IndexHolder< T >::value.


Member Data Documentation

template<typename T>
unsigned int seq::IndexHolder< T >::index
 

Definition at line 23 of file indexHolder.h.

template<typename T>
T* seq::IndexHolder< T >::value
 

Definition at line 22 of file indexHolder.h.

Referenced by seq::IndexHolder< T >::operator!=(), seq::IndexHolder< T >::operator==(), seq::IndexHolder< T >::operator>(), and seq::IndexHolder< T >::operator>=().


The documentation for this class was generated from the following file:
Generated on Tue Mar 24 16:14:27 2009 for DENDRO by  doxygen 1.3.9.1