#include <syntax_tree.h>
Public Member Functions | |
SyntaxTreeBase (const T &label) | |
SyntaxTreeBase (const T &label, const std::vector< DerivedType * > &children) | |
virtual | ~SyntaxTreeBase () |
const T & | label () const |
const DerivedType * | parent () const |
DerivedType * | parent () |
const std::vector< DerivedType * > & | children () const |
std::vector< DerivedType * > & | children () |
void | set_label (const T &label) |
void | set_parent (DerivedType *parent) |
void | set_children (const std::vector< DerivedType * > &c) |
bool | IsLeaf () const |
bool | IsPreterminal () const |
void | AddChild (DerivedType *child) |
Definition at line 34 of file syntax_tree.h.
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::SyntaxTreeBase | ( | const T & | label | ) | [inline] |
Definition at line 38 of file syntax_tree.h.
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::SyntaxTreeBase | ( | const T & | label, | |
const std::vector< DerivedType * > & | children | |||
) | [inline] |
Definition at line 43 of file syntax_tree.h.
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::~SyntaxTreeBase | ( | ) | [inline, virtual] |
Definition at line 106 of file syntax_tree.h.
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::AddChild | ( | DerivedType * | child | ) | [inline] |
Definition at line 85 of file syntax_tree.h.
std::vector<DerivedType *>& Moses::PCFG::SyntaxTreeBase< T, DerivedType >::children | ( | ) | [inline] |
Definition at line 63 of file syntax_tree.h.
const std::vector<DerivedType *>& Moses::PCFG::SyntaxTreeBase< T, DerivedType >::children | ( | ) | const [inline] |
Definition at line 60 of file syntax_tree.h.
Referenced by Moses::PCFG::RuleExtractor::Extract(), and Moses::PCFG::TreeScorer::Score().
bool Moses::PCFG::SyntaxTreeBase< T, DerivedType >::IsLeaf | ( | ) | const [inline] |
Definition at line 77 of file syntax_tree.h.
Referenced by Moses::PCFG::RuleExtractor::Extract(), and Moses::PCFG::TreeScorer::Score().
bool Moses::PCFG::SyntaxTreeBase< T, DerivedType >::IsPreterminal | ( | ) | const [inline] |
Definition at line 81 of file syntax_tree.h.
Referenced by Moses::PCFG::RuleExtractor::Extract(), and Moses::PCFG::TreeScorer::Score().
const T& Moses::PCFG::SyntaxTreeBase< T, DerivedType >::label | ( | ) | const [inline] |
Definition at line 51 of file syntax_tree.h.
Referenced by Moses::PCFG::RuleExtractor::Extract(), Moses::PCFG::XmlOutputHandler< PcfgTree >::GetLabel(), and Moses::PCFG::TreeScorer::Score().
DerivedType* Moses::PCFG::SyntaxTreeBase< T, DerivedType >::parent | ( | ) | [inline] |
Definition at line 57 of file syntax_tree.h.
const DerivedType* Moses::PCFG::SyntaxTreeBase< T, DerivedType >::parent | ( | ) | const [inline] |
Definition at line 54 of file syntax_tree.h.
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_children | ( | const std::vector< DerivedType * > & | c | ) | [inline] |
Definition at line 73 of file syntax_tree.h.
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_label | ( | const T & | label | ) | [inline] |
Definition at line 67 of file syntax_tree.h.
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_parent | ( | DerivedType * | parent | ) | [inline] |
Definition at line 70 of file syntax_tree.h.