#include <VWState.h>
Public Member Functions | |
VWState () | |
VWState (const Phrase &phrase) | |
VWState (const VWState &prevState, const Hypothesis &curHypo) | |
virtual bool | operator== (const FFState &o) const |
virtual size_t | hash () const |
const Phrase & | GetPhrase () const |
size_t | GetSpanStart () const |
size_t | GetSpanEnd () const |
Definition at line 15 of file VWState.h.
Moses::VWState::VWState | ( | ) |
Definition at line 15 of file VWState.cpp.
Moses::VWState::VWState | ( | const Phrase & | phrase | ) |
Definition at line 20 of file VWState.cpp.
Moses::VWState::VWState | ( | const VWState & | prevState, | |
const Hypothesis & | curHypo | |||
) |
Definition at line 26 of file VWState.cpp.
References Moses::Phrase::Append(), Moses::Hypothesis::GetCurrTargetPhrase(), Moses::TranslationOption::GetEndPos(), GetPhrase(), Moses::Phrase::GetSize(), Moses::TranslationOption::GetStartPos(), Moses::Phrase::GetSubString(), Moses::Hypothesis::GetTranslationOption(), range, and VERBOSE.
const Phrase& Moses::VWState::GetPhrase | ( | ) | const [inline] |
Definition at line 33 of file VWState.h.
Referenced by Moses::VW::EvaluateWhenApplied(), Moses::operator<<(), operator==(), and VWState().
size_t Moses::VWState::GetSpanEnd | ( | ) | const [inline] |
Definition at line 41 of file VWState.h.
Referenced by Moses::operator<<(), and operator==().
size_t Moses::VWState::GetSpanStart | ( | ) | const [inline] |
Definition at line 37 of file VWState.h.
Referenced by Moses::operator<<(), and operator==().
virtual size_t Moses::VWState::hash | ( | ) | const [inline, virtual] |
Implements Moses::FFState.
Definition at line 29 of file VWState.h.
Referenced by Moses::VW::EvaluateWhenApplied().
bool Moses::VWState::operator== | ( | const FFState & | o | ) | const [virtual] |
Implements Moses::FFState.
Definition at line 53 of file VWState.cpp.
References GetPhrase(), GetSpanEnd(), and GetSpanStart().