#include <DecodeGraph.h>
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 |
Definition at line 37 of file DecodeGraph.h.
typedef std::list<const DecodeStep*>::const_iterator Moses::DecodeGraph::const_iterator |
Definition at line 63 of file DecodeGraph.h.
typedef std::list<const DecodeStep*>::iterator Moses::DecodeGraph::iterator |
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().
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().
const_iterator Moses::DecodeGraph::begin | ( | ) | const [inline] |
Definition at line 64 of file DecodeGraph.h.
References m_steps.
Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLEGACY(), and Moses::TranslationOptionCollection::GetTargetPhraseCollectionBatch().
const_iterator Moses::DecodeGraph::end | ( | ) | const [inline] |
Definition at line 67 of file DecodeGraph.h.
References m_steps.
Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLEGACY(), and Moses::TranslationOptionCollection::GetTargetPhraseCollectionBatch().
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().
size_t Moses::DecodeGraph::GetId | ( | ) | const [inline] |
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().
size_t Moses::DecodeGraph::GetSize | ( | ) | const [inline] |
Definition at line 76 of file DecodeGraph.h.
References m_steps.
Referenced by Moses::ChartParser::Create().
void Moses::DecodeGraph::SetBackoff | ( | size_t | backoff | ) | [inline] |
Definition at line 89 of file DecodeGraph.h.
References m_backoff.
Referenced by Moses::StaticData::LoadDecodeGraphsNew().
size_t Moses::DecodeGraph::m_backoff [protected] |
size_t Moses::DecodeGraph::m_id [protected] |
size_t Moses::DecodeGraph::m_maxChartSpan [protected] |
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().