Moses::NBestList< THINGY, CMP > Class Template Reference

#include <NBestList.h>

Collaboration diagram for Moses::NBestList< THINGY, CMP >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NBestList (size_t const max_size, CMP const &cmp)
 NBestList (size_t const max_size)
bool add (THINGY const &item)
THINGY const & operator[] (int i) const
THINGY const & get_unsorted (int i) const
size_t size () const


Detailed Description

template<typename THINGY, typename CMP>
class Moses::NBestList< THINGY, CMP >

Definition at line 17 of file NBestList.h.


Constructor & Destructor Documentation

template<typename THINGY , typename CMP >
Moses::NBestList< THINGY, CMP >::NBestList ( size_t const   max_size,
CMP const &  cmp 
) [inline]

Definition at line 38 of file NBestList.h.

template<typename THINGY , typename CMP >
Moses::NBestList< THINGY, CMP >::NBestList ( size_t const   max_size  )  [inline]

Definition at line 46 of file NBestList.h.


Member Function Documentation

template<typename THINGY , typename CMP >
bool Moses::NBestList< THINGY, CMP >::add ( THINGY const &  item  )  [inline]

Definition at line 55 of file NBestList.h.

References Moses::VectorIndexSorter< VAL, COMP, IDX_T >::Compare.

template<typename THINGY , typename CMP >
THINGY const & Moses::NBestList< THINGY, CMP >::get_unsorted ( int  i  )  const [inline]

Definition at line 94 of file NBestList.h.

template<typename THINGY , typename CMP >
THINGY const & Moses::NBestList< THINGY, CMP >::operator[] ( int  i  )  const [inline]

Definition at line 78 of file NBestList.h.

References k.

template<typename THINGY , typename CMP >
size_t Moses::NBestList< THINGY, CMP >::size (  )  const [inline]

Definition at line 31 of file NBestList.h.


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