Moses::Syntax::S2T::RuleTrieCYKPlus::Node Class Reference

#include <RuleTrieCYKPlus.h>

List of all members.

Public Types

typedef boost::unordered_map
< Word, Node, SymbolHasher,
SymbolEqualityPred > 
SymbolMap

Public Member Functions

bool IsLeaf () const
bool HasRules () const
void Prune (std::size_t tableLimit)
void Sort (std::size_t tableLimit)
Node * GetOrCreateChild (const Word &sourceTerm)
Node * GetOrCreateNonTerminalChild (const Word &targetNonTerm)
const Node * GetChild (const Word &sourceTerm) const
const Node * GetNonTerminalChild (const Word &targetNonTerm) const
TargetPhraseCollection::shared_ptr GetTargetPhraseCollection () const
TargetPhraseCollection::shared_ptr GetTargetPhraseCollection ()
const SymbolMap & GetTerminalMap () const
const SymbolMap & GetNonTerminalMap () const
 Node ()


Detailed Description

Definition at line 30 of file RuleTrieCYKPlus.h.


Member Typedef Documentation

Definition at line 34 of file RuleTrieCYKPlus.h.


Constructor & Destructor Documentation

Moses::Syntax::S2T::RuleTrieCYKPlus::Node::Node (  )  [inline]

Definition at line 71 of file RuleTrieCYKPlus.h.


Member Function Documentation

const RuleTrieCYKPlus::Node * Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetChild ( const Word &  sourceTerm  )  const

Definition at line 69 of file RuleTrieCYKPlus.cpp.

References Moses::Word::IsNonTerminal(), NULL, and UTIL_THROW_IF2.

Here is the call graph for this function:

const RuleTrieCYKPlus::Node * Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetNonTerminalChild ( const Word &  targetNonTerm  )  const

Definition at line 79 of file RuleTrieCYKPlus.cpp.

References Moses::Word::IsNonTerminal(), NULL, and UTIL_THROW_IF2.

Here is the call graph for this function:

const SymbolMap& Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetNonTerminalMap (  )  const [inline]

Definition at line 67 of file RuleTrieCYKPlus.h.

RuleTrieCYKPlus::Node * Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetOrCreateChild ( const Word &  sourceTerm  ) 

Definition at line 55 of file RuleTrieCYKPlus.cpp.

RuleTrieCYKPlus::Node * Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetOrCreateNonTerminalChild ( const Word &  targetNonTerm  ) 

Definition at line 61 of file RuleTrieCYKPlus.cpp.

References Moses::Word::IsNonTerminal(), and UTIL_THROW_IF2.

Here is the call graph for this function:

TargetPhraseCollection::shared_ptr Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetTargetPhraseCollection (  )  [inline]

Definition at line 59 of file RuleTrieCYKPlus.h.

TargetPhraseCollection::shared_ptr Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetTargetPhraseCollection (  )  const [inline]

Definition at line 54 of file RuleTrieCYKPlus.h.

const SymbolMap& Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetTerminalMap (  )  const [inline]

Definition at line 63 of file RuleTrieCYKPlus.h.

Referenced by Moses::Syntax::S2T::RuleTrieCYKPlus::HasPreterminalRule().

Here is the caller graph for this function:

bool Moses::Syntax::S2T::RuleTrieCYKPlus::Node::HasRules (  )  const [inline]

Definition at line 40 of file RuleTrieCYKPlus.h.

bool Moses::Syntax::S2T::RuleTrieCYKPlus::Node::IsLeaf (  )  const [inline]

Definition at line 36 of file RuleTrieCYKPlus.h.

void Moses::Syntax::S2T::RuleTrieCYKPlus::Node::Prune ( std::size_t  tableLimit  ) 

Definition at line 23 of file RuleTrieCYKPlus.cpp.

void Moses::Syntax::S2T::RuleTrieCYKPlus::Node::Sort ( std::size_t  tableLimit  ) 

Definition at line 39 of file RuleTrieCYKPlus.cpp.


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

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