Moses::GHKM::ParseTree Class Reference

#include <ParseTree.h>

Collaboration diagram for Moses::GHKM::ParseTree:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ParseTree (const std::string &label)
 ~ParseTree ()
const std::string & GetLabel () const
const std::vector< ParseTree * > & GetChildren () const
const ParseTreeGetParent () const
float GetPcfgScore () const
void SetParent (ParseTree *)
void SetChildren (const std::vector< ParseTree * > &)
void SetPcfgScore (float score)
void AddChild (ParseTree *)
bool IsLeaf () const
template<typename OutputIterator >
void GetLeaves (OutputIterator)


Detailed Description

Definition at line 32 of file ParseTree.h.


Constructor & Destructor Documentation

Moses::GHKM::ParseTree::ParseTree ( const std::string &  label  )  [inline]

Definition at line 35 of file ParseTree.h.

Moses::GHKM::ParseTree::~ParseTree (  ) 

Definition at line 27 of file ParseTree.cpp.


Member Function Documentation

void Moses::GHKM::ParseTree::AddChild ( ParseTree child  ) 

Definition at line 45 of file ParseTree.cpp.

const std::vector<ParseTree*>& Moses::GHKM::ParseTree::GetChildren (  )  const [inline]

Definition at line 45 of file ParseTree.h.

const std::string& Moses::GHKM::ParseTree::GetLabel (  )  const [inline]

Definition at line 42 of file ParseTree.h.

template<typename OutputIterator >
void Moses::GHKM::ParseTree::GetLeaves ( OutputIterator  result  )  [inline]

Definition at line 80 of file ParseTree.h.

References end, GetLeaves(), and IsLeaf().

Referenced by GetLeaves().

Here is the call graph for this function:

Here is the caller graph for this function:

const ParseTree* Moses::GHKM::ParseTree::GetParent (  )  const [inline]

Definition at line 48 of file ParseTree.h.

float Moses::GHKM::ParseTree::GetPcfgScore (  )  const [inline]

Definition at line 51 of file ParseTree.h.

bool Moses::GHKM::ParseTree::IsLeaf (  )  const

Definition at line 50 of file ParseTree.cpp.

Referenced by GetLeaves().

Here is the caller graph for this function:

void Moses::GHKM::ParseTree::SetChildren ( const std::vector< ParseTree * > &  children  ) 

Definition at line 35 of file ParseTree.cpp.

void Moses::GHKM::ParseTree::SetParent ( ParseTree parent  ) 

Definition at line 40 of file ParseTree.cpp.

void Moses::GHKM::ParseTree::SetPcfgScore ( float  score  )  [inline]

Definition at line 57 of file ParseTree.h.


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

Generated on Thu Jun 4 00:32:51 2015 for Moses by  doxygen 1.5.9