Moses::UTrieNode Class Reference

#include <UTrieNode.h>

Collaboration diagram for Moses::UTrieNode:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< std::vector< Word > > 
LabelTable
typedef std::map< Word, UTrieNodeTerminalMap
typedef std::map< std::vector
< int >
, TargetPhraseCollection
LabelMap

Public Member Functions

 ~UTrieNode ()
const LabelTableGetLabelTable () const
const LabelMapGetLabelMap () const
const TerminalMapGetTerminalMap () const
const UTrieNodeGetNonTerminalChild () const
UTrieNodeGetOrCreateTerminalChild (const Word &sourceTerm)
UTrieNodeGetOrCreateNonTerminalChild (const Word &targetNonTerm)
TargetPhraseCollectionGetOrCreateTargetPhraseCollection (const TargetPhrase &)
bool IsLeaf () const
bool HasRules () const
void Prune (size_t tableLimit)
void Sort (size_t tableLimit)

Friends

class RuleTableUTrie


Detailed Description

Todo:
ask phil williams - whats the diff between this and phrasedictionaryNode

Definition at line 43 of file UTrieNode.h.


Member Typedef Documentation

typedef std::map<std::vector<int>, TargetPhraseCollection> Moses::UTrieNode::LabelMap

Definition at line 57 of file UTrieNode.h.

typedef std::vector<std::vector<Word> > Moses::UTrieNode::LabelTable

Definition at line 46 of file UTrieNode.h.

Definition at line 56 of file UTrieNode.h.


Constructor & Destructor Documentation

Moses::UTrieNode::~UTrieNode (  )  [inline]

Definition at line 60 of file UTrieNode.h.


Member Function Documentation

const LabelMap& Moses::UTrieNode::GetLabelMap (  )  const [inline]

Definition at line 67 of file UTrieNode.h.

Referenced by Moses::Scope3Parser::GetChartRuleCollection().

Here is the caller graph for this function:

const LabelTable& Moses::UTrieNode::GetLabelTable (  )  const [inline]

Definition at line 64 of file UTrieNode.h.

Referenced by Moses::StackLatticeBuilder::Build().

Here is the caller graph for this function:

const UTrieNode* Moses::UTrieNode::GetNonTerminalChild (  )  const [inline]

Definition at line 74 of file UTrieNode.h.

Referenced by Moses::ApplicableRuleTrie::Extend().

Here is the caller graph for this function:

UTrieNode * Moses::UTrieNode::GetOrCreateNonTerminalChild ( const Word targetNonTerm  ) 

Definition at line 83 of file UTrieNode.cpp.

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

Here is the call graph for this function:

TargetPhraseCollection & Moses::UTrieNode::GetOrCreateTargetPhraseCollection ( const TargetPhrase target  ) 

UTrieNode * Moses::UTrieNode::GetOrCreateTerminalChild ( const Word sourceTerm  ) 

Definition at line 73 of file UTrieNode.cpp.

References Moses::Word::IsNonTerminal().

Here is the call graph for this function:

const TerminalMap& Moses::UTrieNode::GetTerminalMap (  )  const [inline]

Definition at line 70 of file UTrieNode.h.

Referenced by Moses::ApplicableRuleTrie::Extend().

Here is the caller graph for this function:

bool Moses::UTrieNode::HasRules (  )  const [inline]

Definition at line 88 of file UTrieNode.h.

bool Moses::UTrieNode::IsLeaf (  )  const [inline]

Definition at line 84 of file UTrieNode.h.

References NULL.

void Moses::UTrieNode::Prune ( size_t  tableLimit  ) 

Definition at line 39 of file UTrieNode.cpp.

References Prune().

Referenced by Prune().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::UTrieNode::Sort ( size_t  tableLimit  ) 

Definition at line 56 of file UTrieNode.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 RuleTableUTrie [friend]

Definition at line 96 of file UTrieNode.h.


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

Generated on Thu Apr 17 00:31:42 2014 for Moses by  doxygen 1.5.9