MosesTuning::InternalTree Class Reference

#include <InternalTree.h>

List of all members.

Public Member Functions

 InternalTree (const std::string &line, const bool terminal=false)
 InternalTree (const InternalTree &tree)
size_t AddSubTree (const std::string &line, size_t start)
std::string GetString (bool start=true) const
void Combine (const std::vector< TreePointer > &previous)
const std::string & GetLabel () const
size_t GetLength () const
std::vector< TreePointer > & GetChildren ()
bool IsTerminal () const
bool IsLeafNT () const

Detailed Description

Definition at line 19 of file InternalTree.h.

Constructor & Destructor Documentation

MosesTuning::InternalTree::InternalTree ( const std::string &  line,
const bool  terminal = false 

Definition at line 6 of file InternalTree.cpp.

References AddSubTree().

Here is the call graph for this function:

MosesTuning::InternalTree::InternalTree ( const InternalTree tree  )  [inline]

Definition at line 26 of file InternalTree.h.

Member Function Documentation

size_t MosesTuning::InternalTree::AddSubTree ( const std::string &  line,
size_t  start 

Definition at line 21 of file InternalTree.cpp.

Referenced by InternalTree().

Here is the caller graph for this function:

void MosesTuning::InternalTree::Combine ( const std::vector< TreePointer > &  previous  ) 

Definition at line 93 of file InternalTree.cpp.

std::vector<TreePointer>& MosesTuning::InternalTree::GetChildren (  )  [inline]

Definition at line 45 of file InternalTree.h.

Referenced by MosesTuning::$generator().

Here is the caller graph for this function:

const std::string& MosesTuning::InternalTree::GetLabel (  )  const [inline]

Definition at line 38 of file InternalTree.h.

size_t MosesTuning::InternalTree::GetLength (  )  const [inline]

Definition at line 42 of file InternalTree.h.

std::string MosesTuning::InternalTree::GetString ( bool  start = true  )  const

Definition at line 68 of file InternalTree.cpp.

bool MosesTuning::InternalTree::IsLeafNT (  )  const [inline]

Definition at line 53 of file InternalTree.h.

bool MosesTuning::InternalTree::IsTerminal (  )  const [inline]

Definition at line 49 of file InternalTree.h.

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

Generated on Thu Jul 6 00:34:17 2017 for Moses by  doxygen 1.5.9