Moses::TranslationOptionList Class Reference

#include <TranslationOptionList.h>

List of all members.

Public Types

typedef CollType::iterator iterator
typedef CollType::const_iterator const_iterator

Public Member Functions

const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
 TranslationOptionList ()
 TranslationOptionList (const TranslationOptionList &copy)
 ~TranslationOptionList ()
void resize (size_t newSize)
size_t size () const
const TranslationOptionGet (size_t ind) const
void Remove (size_t ind)
void Add (TranslationOption *transOpt)
 TO_STRING ()
size_t SelectNBest (size_t const N)
size_t PruneByThreshold (float const th)

Protected Types

typedef std::vector
< TranslationOption * > 
CollType

Protected Attributes

CollType m_coll

Friends

std::ostream & operator<< (std::ostream &out, const TranslationOptionList &coll)


Detailed Description

wrapper around vector of translation options

Definition at line 16 of file TranslationOptionList.h.


Member Typedef Documentation

typedef std::vector<TranslationOption*> Moses::TranslationOptionList::CollType [protected]

Definition at line 21 of file TranslationOptionList.h.

typedef CollType::const_iterator Moses::TranslationOptionList::const_iterator

Definition at line 26 of file TranslationOptionList.h.

typedef CollType::iterator Moses::TranslationOptionList::iterator

Definition at line 25 of file TranslationOptionList.h.


Constructor & Destructor Documentation

Moses::TranslationOptionList::TranslationOptionList (  )  [inline]

Definition at line 40 of file TranslationOptionList.h.

Moses::TranslationOptionList::TranslationOptionList ( const TranslationOptionList copy  ) 

Definition at line 12 of file TranslationOptionList.cpp.

References Add(), begin(), and end().

Here is the call graph for this function:

Moses::TranslationOptionList::~TranslationOptionList (  ) 

Definition at line 23 of file TranslationOptionList.cpp.

References m_coll, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void Moses::TranslationOptionList::Add ( TranslationOption transOpt  )  [inline]

Definition at line 61 of file TranslationOptionList.h.

References m_coll, and UTIL_THROW_IF2.

Referenced by TranslationOptionList().

Here is the caller graph for this function:

iterator Moses::TranslationOptionList::begin (  )  [inline]

Definition at line 33 of file TranslationOptionList.h.

References m_coll.

const_iterator Moses::TranslationOptionList::begin (  )  const [inline]

iterator Moses::TranslationOptionList::end (  )  [inline]

Definition at line 36 of file TranslationOptionList.h.

References m_coll.

const_iterator Moses::TranslationOptionList::end (  )  const [inline]

const TranslationOption* Moses::TranslationOptionList::Get ( size_t  ind  )  const [inline]

size_t Moses::TranslationOptionList::PruneByThreshold ( float const   th  ) 

Definition at line 57 of file TranslationOptionList.cpp.

References Moses::TranslationOption::GetFutureScore(), m_coll, and swap().

Referenced by Moses::TranslationOptionCollection::Prune().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::TranslationOptionList::Remove ( size_t  ind  )  [inline]

Definition at line 56 of file TranslationOptionList.h.

References m_coll, and UTIL_THROW_IF2.

void Moses::TranslationOptionList::resize ( size_t  newSize  )  [inline]

Definition at line 45 of file TranslationOptionList.h.

References m_coll.

size_t Moses::TranslationOptionList::SelectNBest ( size_t const   N  ) 

Definition at line 43 of file TranslationOptionList.cpp.

References m_coll, and NTH_ELEMENT4.

Referenced by Moses::TranslationOptionCollection::Prune().

Here is the caller graph for this function:

size_t Moses::TranslationOptionList::size (  )  const [inline]

Moses::TranslationOptionList::TO_STRING (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const TranslationOptionList coll 
) [friend]

Definition at line 30 of file TranslationOptionList.cpp.


Member Data Documentation


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

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