Moses::Syntax::S2T::RuleTrieScope3::Node Class Reference

#include <RuleTrieScope3.h>

Collaboration diagram for Moses::Syntax::S2T::RuleTrieScope3::Node:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< std::vector< Word > > 
LabelTable
typedef boost::unordered_map
< Word, Node, SymbolHasher,
SymbolEqualityPred
TerminalMap
typedef boost::unordered_map
< std::vector< int >
, TargetPhraseCollection::shared_ptr
LabelMap

Public Member Functions

 ~Node ()
const LabelTableGetLabelTable () const
const LabelMapGetLabelMap () const
const TerminalMapGetTerminalMap () const
const NodeGetNonTerminalChild () const
NodeGetOrCreateTerminalChild (const Word &sourceTerm)
NodeGetOrCreateNonTerminalChild (const Word &targetNonTerm)
TargetPhraseCollection::shared_ptr GetOrCreateTargetPhraseCollection (const TargetPhrase &)
bool IsLeaf () const
bool HasRules () const
void Prune (std::size_t tableLimit)
void Sort (std::size_t tableLimit)

Friends

class RuleTrieScope3


Detailed Description

Definition at line 29 of file RuleTrieScope3.h.


Member Typedef Documentation

Definition at line 38 of file RuleTrieScope3.h.

typedef std::vector<std::vector<Word> > Moses::Syntax::S2T::RuleTrieScope3::Node::LabelTable

Definition at line 32 of file RuleTrieScope3.h.

Definition at line 35 of file RuleTrieScope3.h.


Constructor & Destructor Documentation

Moses::Syntax::S2T::RuleTrieScope3::Node::~Node (  )  [inline]

Definition at line 40 of file RuleTrieScope3.h.


Member Function Documentation

const LabelMap& Moses::Syntax::S2T::RuleTrieScope3::Node::GetLabelMap (  )  const [inline]

Definition at line 48 of file RuleTrieScope3.h.

Referenced by Moses::Syntax::S2T::Scope3Parser< Callback >::EnumerateHyperedges().

Here is the caller graph for this function:

const LabelTable& Moses::Syntax::S2T::RuleTrieScope3::Node::GetLabelTable (  )  const [inline]

Definition at line 44 of file RuleTrieScope3.h.

Referenced by Moses::Syntax::S2T::TailLatticeBuilder::Build().

Here is the caller graph for this function:

const Node* Moses::Syntax::S2T::RuleTrieScope3::Node::GetNonTerminalChild (  )  const [inline]

Definition at line 56 of file RuleTrieScope3.h.

Referenced by Moses::Syntax::S2T::PatternApplicationTrie::Extend().

Here is the caller graph for this function:

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

Definition at line 68 of file RuleTrieScope3.cpp.

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

Here is the call graph for this function:

TargetPhraseCollection::shared_ptr Moses::Syntax::S2T::RuleTrieScope3::Node::GetOrCreateTargetPhraseCollection ( const TargetPhrase target  ) 

RuleTrieScope3::Node * Moses::Syntax::S2T::RuleTrieScope3::Node::GetOrCreateTerminalChild ( const Word sourceTerm  ) 

Definition at line 57 of file RuleTrieScope3.cpp.

References Moses::Word::IsNonTerminal().

Here is the call graph for this function:

const TerminalMap& Moses::Syntax::S2T::RuleTrieScope3::Node::GetTerminalMap (  )  const [inline]

Definition at line 52 of file RuleTrieScope3.h.

Referenced by Moses::Syntax::S2T::PatternApplicationTrie::Extend(), and Moses::Syntax::S2T::RuleTrieScope3::HasPreterminalRule().

Here is the caller graph for this function:

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

Definition at line 71 of file RuleTrieScope3.h.

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

Definition at line 67 of file RuleTrieScope3.h.

References NULL.

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

Definition at line 23 of file RuleTrieScope3.cpp.

References Prune().

Referenced by Prune().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 40 of file RuleTrieScope3.cpp.

References Sort().

Referenced by Sort().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class RuleTrieScope3 [friend]

Definition at line 79 of file RuleTrieScope3.h.


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