Moses::LMList Class Reference

List of language models. More...

#include <LMList.h>

List of all members.

Public Types

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

Public Member Functions

const_iterator begin () const
 iterators
const_iterator end () const
size_t size () const
 LMList ()
void CleanUp ()
 ~LMList ()
void CalcScore (const Phrase &phrase, float &retFullScore, float &retNGramScore, float &retOOVScore, ScoreComponentCollection *breakdown) const
void Add (LanguageModel *lm)
size_t GetMinIndex () const
size_t GetMaxIndex () const

Protected Types

typedef std::list
< LanguageModel * > 
CollType

Protected Attributes

CollType m_coll
size_t m_minInd
size_t m_maxInd


Detailed Description

List of language models.

Definition at line 15 of file LMList.h.


Member Typedef Documentation

typedef std::list< LanguageModel* > Moses::LMList::CollType [protected]

Definition at line 18 of file LMList.h.

typedef CollType::const_iterator Moses::LMList::const_iterator

Definition at line 25 of file LMList.h.

typedef CollType::iterator Moses::LMList::iterator

Definition at line 24 of file LMList.h.


Constructor & Destructor Documentation

Moses::LMList::LMList (  )  [inline]

Definition at line 37 of file LMList.h.

Moses::LMList::~LMList (  ) 

Definition at line 32 of file LMList.cpp.


Member Function Documentation

void Moses::LMList::Add ( LanguageModel lm  ) 

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

void Moses::LMList::CalcScore ( const Phrase phrase,
float &  retFullScore,
float &  retNGramScore,
float &  retOOVScore,
ScoreComponentCollection breakdown 
) const

void Moses::LMList::CleanUp (  ) 

Definition at line 36 of file LMList.cpp.

References m_coll, and Moses::RemoveAllInColl().

Referenced by Moses::StaticData::~StaticData().

Here is the call graph for this function:

Here is the caller graph for this function:

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

size_t Moses::LMList::GetMaxIndex (  )  const [inline]

Definition at line 51 of file LMList.h.

References m_maxInd.

Referenced by Moses::ScoreComponentCollection::PlusEqualsAllLM(), and Moses::ScoreComponentCollection::ZeroAllLM().

Here is the caller graph for this function:

size_t Moses::LMList::GetMinIndex (  )  const [inline]

Definition at line 48 of file LMList.h.

References m_minInd.

Referenced by Moses::ScoreComponentCollection::PlusEqualsAllLM(), and Moses::ScoreComponentCollection::ZeroAllLM().

Here is the caller graph for this function:

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

Definition at line 33 of file LMList.h.

References m_coll.


Member Data Documentation

Definition at line 19 of file LMList.h.

Referenced by Add(), begin(), CleanUp(), end(), and size().

size_t Moses::LMList::m_maxInd [protected]

Definition at line 21 of file LMList.h.

Referenced by Add(), and GetMaxIndex().

size_t Moses::LMList::m_minInd [protected]

Definition at line 21 of file LMList.h.

Referenced by Add(), and GetMinIndex().


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

Generated on Wed Feb 8 08:04:09 2012 for Moses by  doxygen 1.5.9