Moses::PCFG::SyntaxTreeBase< T, DerivedType > Class Template Reference

#include <syntax_tree.h>

Inheritance diagram for Moses::PCFG::SyntaxTreeBase< T, DerivedType >:

Inheritance graph
[legend]
Collaboration diagram for Moses::PCFG::SyntaxTreeBase< T, DerivedType >:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

template<typename T, typename DerivedType>
class Moses::PCFG::SyntaxTreeBase< T, DerivedType >

Definition at line 34 of file syntax_tree.h.


Constructor & Destructor Documentation

template<typename T, typename DerivedType>
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::SyntaxTreeBase ( const T &  label  )  [inline]

Definition at line 38 of file syntax_tree.h.

template<typename T, typename DerivedType>
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::SyntaxTreeBase ( const T &  label,
const std::vector< DerivedType * > &  children 
) [inline]

Definition at line 43 of file syntax_tree.h.

template<typename T , typename DerivedType >
Moses::PCFG::SyntaxTreeBase< T, DerivedType >::~SyntaxTreeBase (  )  [inline, virtual]

Definition at line 106 of file syntax_tree.h.


Member Function Documentation

template<typename T, typename DerivedType>
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::AddChild ( DerivedType *  child  )  [inline]

Definition at line 85 of file syntax_tree.h.

template<typename T, typename DerivedType>
std::vector<DerivedType *>& Moses::PCFG::SyntaxTreeBase< T, DerivedType >::children (  )  [inline]

Definition at line 63 of file syntax_tree.h.

template<typename T, typename DerivedType>
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().

Here is the caller graph for this function:

template<typename T, typename DerivedType>
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().

Here is the caller graph for this function:

template<typename T, typename DerivedType>
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().

Here is the caller graph for this function:

template<typename T, typename DerivedType>
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().

Here is the caller graph for this function:

template<typename T, typename DerivedType>
DerivedType* Moses::PCFG::SyntaxTreeBase< T, DerivedType >::parent (  )  [inline]

Definition at line 57 of file syntax_tree.h.

template<typename T, typename DerivedType>
const DerivedType* Moses::PCFG::SyntaxTreeBase< T, DerivedType >::parent (  )  const [inline]

Definition at line 54 of file syntax_tree.h.

template<typename T, typename DerivedType>
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_children ( const std::vector< DerivedType * > &  c  )  [inline]

Definition at line 73 of file syntax_tree.h.

template<typename T, typename DerivedType>
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_label ( const T &  label  )  [inline]

Definition at line 67 of file syntax_tree.h.

template<typename T, typename DerivedType>
void Moses::PCFG::SyntaxTreeBase< T, DerivedType >::set_parent ( DerivedType *  parent  )  [inline]

Definition at line 70 of file syntax_tree.h.


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

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