#include <ParseTree.h>
Public Member Functions | |
ParseTree (const std::string &label) | |
~ParseTree () | |
const std::string & | GetLabel () const |
const std::vector< ParseTree * > & | GetChildren () const |
const ParseTree * | GetParent () 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) |
Definition at line 32 of file ParseTree.h.
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.
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.
void Moses::GHKM::ParseTree::GetLeaves | ( | OutputIterator | result | ) | [inline] |
Definition at line 80 of file ParseTree.h.
References end, GetLeaves(), and IsLeaf().
Referenced by GetLeaves().
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().
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.