Moses::HypothesisStack Class Reference

#include <HypothesisStack.h>

Inheritance diagram for Moses::HypothesisStack:

Inheritance graph
[legend]
Collaboration diagram for Moses::HypothesisStack:

Collaboration graph
[legend]

List of all members.

Public Types

typedef _HCType::iterator iterator
typedef _HCType::const_iterator const_iterator

Public Member Functions

 HypothesisStack (Manager &manager)
const_iterator begin () const
 iterators
const_iterator end () const
size_t size () const
virtual float GetWorstScore () const
virtual float GetWorstScoreForBitmap (WordsBitmapID)
virtual float GetWorstScoreForBitmap (const WordsBitmap &)
virtual ~HypothesisStack ()
virtual bool AddPrune (Hypothesis *hypothesis)=0
virtual const HypothesisGetBestHypothesis () const =0
virtual std::vector< const
Hypothesis * > 
GetSortedList () const =0
virtual void Detach (const HypothesisStack::iterator &iter)
 remove hypothesis pointed to by iterator but don't delete the object
virtual void Remove (const HypothesisStack::iterator &iter)

Protected Types

typedef std::set< Hypothesis
*, HypothesisRecombinationOrderer
_HCType

Protected Attributes

_HCType m_hypos
Managerm_manager


Detailed Description

abstract unique set of hypotheses that cover a certain number of words, ie. a stack in phrase-based decoding

Definition at line 17 of file HypothesisStack.h.


Member Typedef Documentation

Definition at line 21 of file HypothesisStack.h.

typedef _HCType::const_iterator Moses::HypothesisStack::const_iterator

Definition at line 28 of file HypothesisStack.h.

typedef _HCType::iterator Moses::HypothesisStack::iterator

Definition at line 27 of file HypothesisStack.h.


Constructor & Destructor Documentation

Moses::HypothesisStack::HypothesisStack ( Manager manager  )  [inline]

Definition at line 26 of file HypothesisStack.h.

Moses::HypothesisStack::~HypothesisStack (  )  [virtual]

Definition at line 6 of file HypothesisStack.cpp.

References m_hypos, and Remove().

Here is the call graph for this function:


Member Function Documentation

virtual bool Moses::HypothesisStack::AddPrune ( Hypothesis hypothesis  )  [pure virtual]

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

void Moses::HypothesisStack::Detach ( const HypothesisStack::iterator iter  )  [virtual]

remove hypothesis pointed to by iterator but don't delete the object

Remove hypothesis pointed to by iterator but don't delete the object.

Definition at line 15 of file HypothesisStack.cpp.

References m_hypos.

Referenced by Moses::HypothesisStackNormal::AddPrune(), Moses::HypothesisStackCubePruning::AddPrune(), Moses::HypothesisStackNormal::PruneToSize(), and Remove().

Here is the caller graph for this function:

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

virtual const Hypothesis* Moses::HypothesisStack::GetBestHypothesis (  )  const [pure virtual]

Implemented in Moses::HypothesisStackCubePruning, and Moses::HypothesisStackNormal.

Referenced by Moses::SearchCubePruning::GetBestHypothesis().

Here is the caller graph for this function:

virtual std::vector<const Hypothesis*> Moses::HypothesisStack::GetSortedList (  )  const [pure virtual]

virtual float Moses::HypothesisStack::GetWorstScore (  )  const [inline, virtual]

Reimplemented in Moses::HypothesisStackCubePruning, and Moses::HypothesisStackNormal.

Definition at line 39 of file HypothesisStack.h.

virtual float Moses::HypothesisStack::GetWorstScoreForBitmap ( const WordsBitmap  )  [inline, virtual]

Reimplemented in Moses::HypothesisStackNormal.

Definition at line 45 of file HypothesisStack.h.

virtual float Moses::HypothesisStack::GetWorstScoreForBitmap ( WordsBitmapID   )  [inline, virtual]

Reimplemented in Moses::HypothesisStackNormal.

Definition at line 42 of file HypothesisStack.h.

void Moses::HypothesisStack::Remove ( const HypothesisStack::iterator iter  )  [virtual]

destroy Hypothesis pointed to by iterator (object pool version)

Definition at line 21 of file HypothesisStack.cpp.

References Detach(), and FREEHYPO.

Referenced by Moses::HypothesisStackNormal::AddPrune(), Moses::HypothesisStackCubePruning::AddPrune(), Moses::HypothesisStackCubePruning::PruneToSize(), Moses::HypothesisStackNormal::RemoveAll(), and ~HypothesisStack().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 36 of file HypothesisStack.h.

References m_hypos.

Referenced by Moses::HypothesisStackNormal::PruneToSize(), and Moses::HypothesisStackCubePruning::PruneToSize().

Here is the caller graph for this function:


Member Data Documentation


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

Generated on Thu Oct 23 00:31:26 2014 for Moses by  doxygen 1.5.9