Moses::ForestInput Class Reference

#include <ForestInput.h>

Inheritance diagram for Moses::ForestInput:

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

Collaboration graph
[legend]

List of all members.

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::VertexGetRootVertex () const

Friends

std::ostream & operator<< (std::ostream &, const ForestInput &)


Detailed Description

Definition at line 19 of file ForestInput.h.


Constructor & Destructor Documentation

Moses::ForestInput::ForestInput ( AllOptions::ptr const &  opts  )  [inline]

Definition at line 24 of file ForestInput.h.


Member Function Documentation

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.

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const ForestInput  
) [friend]

Definition at line 252 of file ForestInput.cpp.


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

Generated on Thu Jul 6 00:33:16 2017 for Moses by  doxygen 1.5.9