#include <ForestInput.h>
Classes | |
struct | VertexSetHash |
struct | VertexSetPred |
Public Member Functions | |
ForestInput (AllOptions::ptr const &opts) | |
InputTypeEnum | GetType () const |
virtual int | Read (std::istream &in) |
populate this InputType with data from in stream | |
virtual void | Print (std::ostream &) const |
Output debugging info to stream out. | |
virtual TranslationOptionCollection * | CreateTranslationOptionCollection () const |
create trans options specific to this InputType | |
boost::shared_ptr< const Syntax::F2S::Forest > | GetForest () const |
const Syntax::F2S::Forest::Vertex * | GetRootVertex () const |
Friends | |
std::ostream & | operator<< (std::ostream &, const ForestInput &) |
Definition at line 19 of file ForestInput.h.
Moses::ForestInput::ForestInput | ( | AllOptions::ptr const & | opts | ) | [inline] |
Definition at line 24 of file ForestInput.h.
TranslationOptionCollection * Moses::ForestInput::CreateTranslationOptionCollection | ( | ) | const [virtual] |
create trans options specific to this InputType
Definition at line 245 of file ForestInput.cpp.
References NULL.
boost::shared_ptr<const Syntax::F2S::Forest> Moses::ForestInput::GetForest | ( | ) | const [inline] |
Definition at line 41 of file ForestInput.h.
const Syntax::F2S::Forest::Vertex* Moses::ForestInput::GetRootVertex | ( | ) | const [inline] |
Definition at line 45 of file ForestInput.h.
InputTypeEnum Moses::ForestInput::GetType | ( | ) | const [inline, virtual] |
Reimplemented from Moses::Sentence.
Definition at line 26 of file ForestInput.h.
References Moses::ForestInputType.
void Moses::ForestInput::Print | ( | std::ostream & | out | ) | const [virtual] |
Output debugging info to stream out.
Reimplemented from Moses::Sentence.
Definition at line 238 of file ForestInput.cpp.
int Moses::ForestInput::Read | ( | std::istream & | in | ) | [virtual] |
populate this InputType with data from in stream
Reimplemented from Moses::Sentence.
Definition at line 21 of file ForestInput.cpp.
References Moses::Word::CreateFromString(), Moses::Syntax::F2S::Forest::Hyperedge::head, Moses::Input, Moses::InputType::m_options, NULL, and Moses::Syntax::F2S::Forest::Hyperedge::tail.
std::ostream& operator<< | ( | std::ostream & | out, | |
const ForestInput & | ||||
) | [friend] |
Definition at line 252 of file ForestInput.cpp.