Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::SelectedIndicesCmp< T > Class Template Reference

#include <TMat_sort.h>

Collaboration diagram for PLearn::SelectedIndicesCmp< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T first_argument_type
typedef T second_argument_type
typedef bool result_type

Public Member Functions

 SelectedIndicesCmp (TVec< int > the_indices, bool use_lexical_less_than=true)
bool operator() (const T &x, const T &y)

Private Attributes

TVec< intindices
bool use_less_than

template<class T>
class PLearn::SelectedIndicesCmp< T >


Member Typedef Documentation

template<class T>
typedef T PLearn::SelectedIndicesCmp< T >::first_argument_type
 

Definition at line 65 of file TMat_sort.h.

template<class T>
typedef bool PLearn::SelectedIndicesCmp< T >::result_type
 

Definition at line 67 of file TMat_sort.h.

template<class T>
typedef T PLearn::SelectedIndicesCmp< T >::second_argument_type
 

Definition at line 66 of file TMat_sort.h.


Constructor & Destructor Documentation

template<class T>
PLearn::SelectedIndicesCmp< T >::SelectedIndicesCmp TVec< int the_indices,
bool  use_lexical_less_than = true
[inline]
 

Definition at line 69 of file TMat_sort.h.

References PLearn::SelectedIndicesCmp< T >::indices, and PLearn::SelectedIndicesCmp< T >::use_less_than.


Member Function Documentation

template<class T>
bool PLearn::SelectedIndicesCmp< T >::operator() const T &  x,
const T &  y
[inline]
 

Definition at line 73 of file TMat_sort.h.

References PLearn::SelectedIndicesCmp< T >::indices, k, PLearn::TVec< int >::length(), PLearn::SelectedIndicesCmp< T >::operator()(), PLearn::SelectedIndicesCmp< T >::use_less_than, and x.

Referenced by PLearn::SelectedIndicesCmp< T >::operator()().


Member Data Documentation

template<class T>
TVec<int> PLearn::SelectedIndicesCmp< T >::indices [private]
 

Definition at line 61 of file TMat_sort.h.

Referenced by PLearn::SelectedIndicesCmp< T >::operator()(), and PLearn::SelectedIndicesCmp< T >::SelectedIndicesCmp().

template<class T>
bool PLearn::SelectedIndicesCmp< T >::use_less_than [private]
 

Definition at line 62 of file TMat_sort.h.

Referenced by PLearn::SelectedIndicesCmp< T >::operator()(), and PLearn::SelectedIndicesCmp< T >::SelectedIndicesCmp().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:24:04 2004 for PLearn by doxygen 1.3.7