Moses::Syntax::S2T::PatternApplicationTrie Struct Reference

#include <PatternApplicationTrie.h>

Collaboration diagram for Moses::Syntax::S2T::PatternApplicationTrie:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PatternApplicationTrie (int start, int end, const RuleTrieScope3::Node &node, const PVertex *pvertex, PatternApplicationTrie *parent)
 ~PatternApplicationTrie ()
int Depth () const
bool IsGapNode () const
bool IsTerminalNode () const
const PatternApplicationTrieGetHighestTerminalNode () const
const PatternApplicationTrieGetLowestTerminalNode () const
void DetermineStartRange (int, int &, int &) const
void DetermineEndRange (int, int &, int &) const
void Extend (const RuleTrieScope3::Node &node, int minPos, const SentenceMap &sentMap, bool followsGap)
void ReadOffPatternApplicationKey (PatternApplicationKey &) const

Public Attributes

int m_start
int m_end
const RuleTrieScope3::Nodem_node
const PVertexm_pvertex
PatternApplicationTriem_parent
std::vector
< PatternApplicationTrie * > 
m_children
const PatternApplicationTriem_highestTerminalNode
const PatternApplicationTriem_lowestTerminalNode


Detailed Description

Definition at line 21 of file PatternApplicationTrie.h.


Constructor & Destructor Documentation

Moses::Syntax::S2T::PatternApplicationTrie::PatternApplicationTrie ( int  start,
int  end,
const RuleTrieScope3::Node node,
const PVertex pvertex,
PatternApplicationTrie parent 
) [inline]

Definition at line 23 of file PatternApplicationTrie.h.

Referenced by Extend().

Here is the caller graph for this function:

Moses::Syntax::S2T::PatternApplicationTrie::~PatternApplicationTrie (  )  [inline]

Definition at line 33 of file PatternApplicationTrie.h.

References m_children, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

int Moses::Syntax::S2T::PatternApplicationTrie::Depth (  )  const

Definition at line 12 of file PatternApplicationTrie.cpp.

References Depth(), and m_parent.

Referenced by Depth(), DetermineEndRange(), DetermineStartRange(), and ReadOffPatternApplicationKey().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::Syntax::S2T::PatternApplicationTrie::DetermineEndRange ( int  sentenceLength,
int &  minEnd,
int &  maxEnd 
) const

Definition at line 111 of file PatternApplicationTrie.cpp.

References Depth(), GetLowestTerminalNode(), m_end, and n.

Here is the call graph for this function:

void Moses::Syntax::S2T::PatternApplicationTrie::DetermineStartRange ( int  sentenceLength,
int &  minStart,
int &  maxStart 
) const

Definition at line 80 of file PatternApplicationTrie.cpp.

References Depth(), GetHighestTerminalNode(), m_parent, m_start, and n.

Here is the call graph for this function:

void Moses::Syntax::S2T::PatternApplicationTrie::Extend ( const RuleTrieScope3::Node node,
int  minPos,
const SentenceMap sentMap,
bool  followsGap 
)

const PatternApplicationTrie * Moses::Syntax::S2T::PatternApplicationTrie::GetHighestTerminalNode (  )  const

Definition at line 21 of file PatternApplicationTrie.cpp.

References GetHighestTerminalNode(), IsTerminalNode(), m_highestTerminalNode, and m_parent.

Referenced by DetermineStartRange(), and GetHighestTerminalNode().

Here is the call graph for this function:

Here is the caller graph for this function:

const PatternApplicationTrie * Moses::Syntax::S2T::PatternApplicationTrie::GetLowestTerminalNode (  )  const

Definition at line 53 of file PatternApplicationTrie.cpp.

References GetLowestTerminalNode(), IsTerminalNode(), m_lowestTerminalNode, and m_parent.

Referenced by DetermineEndRange(), and GetLowestTerminalNode().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::Syntax::S2T::PatternApplicationTrie::IsGapNode (  )  const [inline]

Definition at line 39 of file PatternApplicationTrie.h.

References m_end.

bool Moses::Syntax::S2T::PatternApplicationTrie::IsTerminalNode (  )  const [inline]

Definition at line 42 of file PatternApplicationTrie.h.

References m_end.

Referenced by Moses::Syntax::S2T::TailLatticeBuilder::Build(), GetHighestTerminalNode(), and GetLowestTerminalNode().

Here is the caller graph for this function:

void Moses::Syntax::S2T::PatternApplicationTrie::ReadOffPatternApplicationKey ( PatternApplicationKey key  )  const

Definition at line 177 of file PatternApplicationTrie.cpp.

References Depth(), and m_parent.

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 62 of file PatternApplicationTrie.h.

Referenced by Extend(), and ~PatternApplicationTrie().

Definition at line 58 of file PatternApplicationTrie.h.

Referenced by DetermineEndRange(), IsGapNode(), and IsTerminalNode().

Definition at line 63 of file PatternApplicationTrie.h.

Referenced by GetHighestTerminalNode().

Definition at line 64 of file PatternApplicationTrie.h.

Referenced by GetLowestTerminalNode().

Definition at line 57 of file PatternApplicationTrie.h.

Referenced by DetermineStartRange().


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

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