Moses::VectorIndexSorter< VAL, COMP, IDX_T > Class Template Reference

#include <VectorIndexSorter.h>

Inheritance diagram for Moses::VectorIndexSorter< VAL, COMP, IDX_T >:

Inheritance graph
[legend]
Collaboration diagram for Moses::VectorIndexSorter< VAL, COMP, IDX_T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VectorIndexSorter (std::vector< VAL > const &v, COMP const &comp)
 VectorIndexSorter (std::vector< VAL > const &v)
bool operator() (IDX_T const &a, IDX_T const &b) const
boost::shared_ptr< std::vector
< IDX_T > > 
GetOrder () const
void GetOrder (std::vector< IDX_T > &order) const

Public Attributes

COMP const & Compare


Detailed Description

template<typename VAL, typename COMP = std::greater<VAL>, typename IDX_T = size_t>
class Moses::VectorIndexSorter< VAL, COMP, IDX_T >

Definition at line 24 of file VectorIndexSorter.h.


Constructor & Destructor Documentation

template<typename VAL, typename COMP = std::greater<VAL>, typename IDX_T = size_t>
Moses::VectorIndexSorter< VAL, COMP, IDX_T >::VectorIndexSorter ( std::vector< VAL > const &  v,
COMP const &  comp 
) [inline]

Definition at line 33 of file VectorIndexSorter.h.

template<typename VAL, typename COMP = std::greater<VAL>, typename IDX_T = size_t>
Moses::VectorIndexSorter< VAL, COMP, IDX_T >::VectorIndexSorter ( std::vector< VAL > const &  v  )  [inline]

Definition at line 37 of file VectorIndexSorter.h.


Member Function Documentation

template<typename VAL , typename COMP , typename IDX_T>
void Moses::VectorIndexSorter< VAL, COMP, IDX_T >::GetOrder ( std::vector< IDX_T > &  order  )  const [inline]

Definition at line 70 of file VectorIndexSorter.h.

References sort().

Here is the call graph for this function:

template<typename VAL , typename COMP , typename IDX_T >
boost::shared_ptr< std::vector< IDX_T > > Moses::VectorIndexSorter< VAL, COMP, IDX_T >::GetOrder (  )  const [inline]

Definition at line 60 of file VectorIndexSorter.h.

Referenced by main(), and show().

Here is the caller graph for this function:

template<typename VAL, typename COMP = std::greater<VAL>, typename IDX_T = size_t>
bool Moses::VectorIndexSorter< VAL, COMP, IDX_T >::operator() ( IDX_T const &  a,
IDX_T const &  b 
) const [inline]

Definition at line 42 of file VectorIndexSorter.h.


Member Data Documentation

template<typename VAL, typename COMP = std::greater<VAL>, typename IDX_T = size_t>
COMP const& Moses::VectorIndexSorter< VAL, COMP, IDX_T >::Compare

Definition at line 32 of file VectorIndexSorter.h.

Referenced by Moses::NBestList< THINGY, CMP >::add().


The documentation for this class was generated from the following file:

Generated on Thu Jul 6 00:33:55 2017 for Moses by  doxygen 1.5.9