Moses::GHKM::Node Class Reference

#include <Node.h>

Collaboration diagram for Moses::GHKM::Node:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Node (const std::string &label, NodeType type)
 ~Node ()
const std::string & GetLabel () const
NodeType GetType () const
const std::vector< Node * > & GetChildren () const
const std::vector< Node * > & GetParents () const
float GetPcfgScore () const
const SpanGetSpan () const
const SpanGetComplementSpan () const
const std::vector< const
Subgraph * > & 
GetRules () const
void SetChildren (const std::vector< Node * > &c)
void SetParents (const std::vector< Node * > &p)
void SetPcfgScore (float s)
void SetSpan (const Span &s)
void SetComplementSpan (const Span &cs)
void AddChild (Node *c)
void AddParent (Node *p)
void AddRule (const Subgraph *s)
bool IsSink () const
bool IsPreterminal () const
void PropagateIndex (int)
std::vector< std::string > GetTargetWords () const
template<typename OutputIterator >
void GetTreeAncestors (OutputIterator result, bool includeSelf=false)

Static Public Member Functions

template<typename InputIterator >
static NodeLowestCommonAncestor (InputIterator first, InputIterator last)


Detailed Description

Definition at line 40 of file Node.h.


Constructor & Destructor Documentation

Moses::GHKM::Node::Node ( const std::string &  label,
NodeType  type 
) [inline]

Definition at line 43 of file Node.h.

Moses::GHKM::Node::~Node (  ) 

Definition at line 29 of file Node.cpp.


Member Function Documentation

void Moses::GHKM::Node::AddChild ( Node c  )  [inline]

Definition at line 91 of file Node.h.

Referenced by Moses::GHKM::AlignmentGraph::AlignmentGraph().

Here is the caller graph for this function:

void Moses::GHKM::Node::AddParent ( Node p  )  [inline]

Definition at line 94 of file Node.h.

Referenced by Moses::GHKM::AlignmentGraph::AlignmentGraph().

Here is the caller graph for this function:

void Moses::GHKM::Node::AddRule ( const Subgraph s  )  [inline]

Definition at line 97 of file Node.h.

Referenced by Moses::GHKM::AlignmentGraph::ExtractMinimalRules().

Here is the caller graph for this function:

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

Definition at line 56 of file Node.h.

const Span& Moses::GHKM::Node::GetComplementSpan (  )  const [inline]

Definition at line 68 of file Node.h.

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

Definition at line 50 of file Node.h.

Referenced by Moses::GHKM::ScfgRule::ScfgRule().

Here is the caller graph for this function:

const std::vector<Node*>& Moses::GHKM::Node::GetParents (  )  const [inline]

Definition at line 59 of file Node.h.

Referenced by Moses::GHKM::ComposedRule::AttemptComposition(), and Moses::GHKM::ScfgRule::ScfgRule().

Here is the caller graph for this function:

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

Definition at line 62 of file Node.h.

const std::vector<const Subgraph*>& Moses::GHKM::Node::GetRules (  )  const [inline]

Definition at line 71 of file Node.h.

const Span& Moses::GHKM::Node::GetSpan (  )  const [inline]

Definition at line 65 of file Node.h.

Referenced by Moses::GHKM::AlignmentGraph::ExtractMinimalRules(), and Moses::GHKM::ScfgRule::ScfgRule().

Here is the caller graph for this function:

std::vector< std::string > Moses::GHKM::Node::GetTargetWords (  )  const

Definition at line 53 of file Node.cpp.

Referenced by Moses::GHKM::ScfgRule::ScfgRule().

Here is the caller graph for this function:

template<typename OutputIterator >
void Moses::GHKM::Node::GetTreeAncestors ( OutputIterator  result,
bool  includeSelf = false 
) [inline]

Definition at line 139 of file Node.h.

References Moses::GHKM::TARGET, and Moses::GHKM::TREE.

Referenced by LowestCommonAncestor().

Here is the caller graph for this function:

NodeType Moses::GHKM::Node::GetType (  )  const [inline]

bool Moses::GHKM::Node::IsPreterminal (  )  const

Definition at line 37 of file Node.cpp.

References Moses::GHKM::TARGET, and Moses::GHKM::TREE.

bool Moses::GHKM::Node::IsSink (  )  const [inline]

Definition at line 101 of file Node.h.

template<typename InputIterator >
Node * Moses::GHKM::Node::LowestCommonAncestor ( InputIterator  first,
InputIterator  last 
) [inline, static]

Definition at line 156 of file Node.h.

References GetTreeAncestors(), index, and Moses::GHKM::SOURCE.

Here is the call graph for this function:

void Moses::GHKM::Node::PropagateIndex ( int  index  ) 

Definition at line 44 of file Node.cpp.

void Moses::GHKM::Node::SetChildren ( const std::vector< Node * > &  c  )  [inline]

Definition at line 75 of file Node.h.

void Moses::GHKM::Node::SetComplementSpan ( const Span cs  )  [inline]

Definition at line 87 of file Node.h.

void Moses::GHKM::Node::SetParents ( const std::vector< Node * > &  p  )  [inline]

Definition at line 78 of file Node.h.

void Moses::GHKM::Node::SetPcfgScore ( float  s  )  [inline]

Definition at line 81 of file Node.h.

void Moses::GHKM::Node::SetSpan ( const Span s  )  [inline]

Definition at line 84 of file Node.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