Moses::PhraseDictionaryNodeMemory Class Reference

#include <PhraseDictionaryNodeMemory.h>

List of all members.

Public Types

typedef std::pair< Word, WordNonTerminalMapKey
typedef std::map< Word,
PhraseDictionaryNodeMemory
TerminalMap
typedef std::map
< NonTerminalMapKey,
PhraseDictionaryNodeMemory
NonTerminalMap

Public Member Functions

 PhraseDictionaryNodeMemory ()
bool IsLeaf () const
void Prune (size_t tableLimit)
void Sort (size_t tableLimit)
PhraseDictionaryNodeMemoryGetOrCreateChild (const Word &sourceTerm)
const PhraseDictionaryNodeMemoryGetChild (const Word &sourceTerm) const
PhraseDictionaryNodeMemoryGetOrCreateChild (const Word &sourceNonTerm, const Word &targetNonTerm)
const PhraseDictionaryNodeMemoryGetChild (const Word &sourceNonTerm, const Word &targetNonTerm) const
TargetPhraseCollection::shared_ptr GetTargetPhraseCollection () const
TargetPhraseCollection::shared_ptr GetTargetPhraseCollection ()
const TerminalMapGetTerminalMap () const
const NonTerminalMapGetNonTerminalMap () const
void Remove ()
 TO_STRING ()

Friends

std::ostream & operator<< (std::ostream &, const PhraseDictionaryMemory &)
std::ostream & operator<< (std::ostream &, const PhraseDictionaryScope3 &)
std::ostream & operator<< (std::ostream &, const PhraseDictionaryFuzzyMatch &)


Detailed Description

One node of the PhraseDictionaryMemory structure

Definition at line 95 of file PhraseDictionaryNodeMemory.h.


Member Typedef Documentation

Definition at line 122 of file PhraseDictionaryNodeMemory.h.

Definition at line 98 of file PhraseDictionaryNodeMemory.h.

Definition at line 118 of file PhraseDictionaryNodeMemory.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryNodeMemory::PhraseDictionaryNodeMemory (  )  [inline]

Definition at line 137 of file PhraseDictionaryNodeMemory.h.


Member Function Documentation

const PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetChild ( const Word sourceNonTerm,
const Word targetNonTerm 
) const

Definition at line 105 of file PhraseDictionaryNodeMemory.cpp.

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

Here is the call graph for this function:

const PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetChild ( const Word sourceTerm  )  const

Definition at line 86 of file PhraseDictionaryNodeMemory.cpp.

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

Referenced by Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(), and Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY().

Here is the call graph for this function:

Here is the caller graph for this function:

const NonTerminalMap& Moses::PhraseDictionaryNodeMemory::GetNonTerminalMap (  )  const [inline]

Definition at line 169 of file PhraseDictionaryNodeMemory.h.

Referenced by Moses::DottedRuleColl::Add().

Here is the caller graph for this function:

PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetOrCreateChild ( const Word sourceNonTerm,
const Word targetNonTerm 
)

Definition at line 74 of file PhraseDictionaryNodeMemory.cpp.

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

Here is the call graph for this function:

PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetOrCreateChild ( const Word sourceTerm  ) 

Definition at line 60 of file PhraseDictionaryNodeMemory.cpp.

Referenced by Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode(), and Moses::PhraseDictionaryMemory::GetOrCreateNode().

Here is the caller graph for this function:

TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection (  )  [inline]

Definition at line 161 of file PhraseDictionaryNodeMemory.h.

TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection (  )  const [inline]

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

Definition at line 165 of file PhraseDictionaryNodeMemory.h.

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

Definition at line 140 of file PhraseDictionaryNodeMemory.h.

Referenced by Moses::DottedRuleColl::Add().

Here is the caller graph for this function:

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

Definition at line 31 of file PhraseDictionaryNodeMemory.cpp.

void Moses::PhraseDictionaryNodeMemory::Remove (  ) 

Definition at line 118 of file PhraseDictionaryNodeMemory.cpp.

Referenced by Moses::PhraseDictionaryALSuffixArray::CleanUpAfterSentenceProcessing().

Here is the caller graph for this function:

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

Definition at line 45 of file PhraseDictionaryNodeMemory.cpp.

Referenced by Moses::PhraseDictionaryFuzzyMatch::SortAndPrune(), and Moses::PhraseDictionaryMemory::SortAndPrune().

Here is the caller graph for this function:

Moses::PhraseDictionaryNodeMemory::TO_STRING (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const PhraseDictionaryFuzzyMatch  
) [friend]

std::ostream& operator<< ( std::ostream &  ,
const PhraseDictionaryScope3  
) [friend]

std::ostream& operator<< ( std::ostream &  ,
const PhraseDictionaryMemory  
) [friend]


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

Generated on Thu Jul 6 00:33:51 2017 for Moses by  doxygen 1.5.9