Moses::DecodeGraph Class Reference

list of DecodeSteps which factorizes the translation More...

#include <DecodeGraph.h>

List of all members.

Public Types

typedef std::list< const
DecodeStep * >::iterator 
iterator
 iterators
typedef std::list< const
DecodeStep * >::const_iterator 
const_iterator

Public Member Functions

 DecodeGraph (size_t id)
 DecodeGraph (size_t id, size_t maxChartSpan)
const_iterator begin () const
const_iterator end () const
virtual ~DecodeGraph ()
void Add (DecodeStep *decodeStep)
 Add another decode step to the graph.
size_t GetSize () const
size_t GetMaxChartSpan () const
size_t GetBackoff () const
void SetBackoff (size_t backoff)
size_t GetId () const

Protected Attributes

std::list< const DecodeStep * > m_steps
size_t m_id
size_t m_maxChartSpan
size_t m_backoff


Detailed Description

list of DecodeSteps which factorizes the translation

Definition at line 37 of file DecodeGraph.h.


Member Typedef Documentation

Definition at line 63 of file DecodeGraph.h.

typedef std::list<const DecodeStep*>::iterator Moses::DecodeGraph::iterator

iterators

Definition at line 62 of file DecodeGraph.h.


Constructor & Destructor Documentation

Moses::DecodeGraph::DecodeGraph ( size_t  id  )  [inline]

position: The position of this graph within the decode sequence.

Definition at line 49 of file DecodeGraph.h.

Moses::DecodeGraph::DecodeGraph ( size_t  id,
size_t  maxChartSpan 
) [inline]

Definition at line 56 of file DecodeGraph.h.

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

Definition at line 30 of file DecodeGraph.cpp.

References m_steps, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void Moses::DecodeGraph::Add ( DecodeStep decodeStep  ) 

Add another decode step to the graph.

Definition at line 36 of file DecodeGraph.cpp.

References m_steps, and Moses::DecodeStep::SetContainer().

Here is the call graph for this function:

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

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

size_t Moses::DecodeGraph::GetBackoff (  )  const [inline]

Definition at line 85 of file DecodeGraph.h.

References m_backoff.

Referenced by Moses::TranslationOptionCollection::CreateTranslationOptions(), and Moses::PhraseDictionary::SatisfyBackoff().

Here is the caller graph for this function:

size_t Moses::DecodeGraph::GetId (  )  const [inline]

Definition at line 93 of file DecodeGraph.h.

References m_id.

size_t Moses::DecodeGraph::GetMaxChartSpan (  )  const [inline]

Definition at line 80 of file DecodeGraph.h.

References m_maxChartSpan, NOT_FOUND, and UTIL_THROW_IF2.

Referenced by Moses::ChartParser::Create().

Here is the caller graph for this function:

size_t Moses::DecodeGraph::GetSize (  )  const [inline]

Definition at line 76 of file DecodeGraph.h.

References m_steps.

Referenced by Moses::ChartParser::Create().

Here is the caller graph for this function:

void Moses::DecodeGraph::SetBackoff ( size_t  backoff  )  [inline]

Definition at line 89 of file DecodeGraph.h.

References m_backoff.

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

Here is the caller graph for this function:


Member Data Documentation

size_t Moses::DecodeGraph::m_backoff [protected]

Definition at line 43 of file DecodeGraph.h.

Referenced by GetBackoff(), and SetBackoff().

size_t Moses::DecodeGraph::m_id [protected]

Definition at line 41 of file DecodeGraph.h.

Referenced by GetId().

Definition at line 42 of file DecodeGraph.h.

Referenced by GetMaxChartSpan().

std::list<const DecodeStep*> Moses::DecodeGraph::m_steps [protected]

Definition at line 40 of file DecodeGraph.h.

Referenced by Add(), begin(), end(), GetSize(), and ~DecodeGraph().


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

Generated on Thu Jul 6 00:32:56 2017 for Moses by  doxygen 1.5.9