#include <PatternApplicationTrie.h>

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 PatternApplicationTrie * | GetHighestTerminalNode () const |
| const PatternApplicationTrie * | GetLowestTerminalNode () 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::Node * | m_node |
| const PVertex * | m_pvertex |
| PatternApplicationTrie * | m_parent |
| std::vector < PatternApplicationTrie * > | m_children |
| const PatternApplicationTrie * | m_highestTerminalNode |
| const PatternApplicationTrie * | m_lowestTerminalNode |
Definition at line 21 of file PatternApplicationTrie.h.
| 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().

| Moses::Syntax::S2T::PatternApplicationTrie::~PatternApplicationTrie | ( | ) | [inline] |
Definition at line 33 of file PatternApplicationTrie.h.
References m_children, and Moses::RemoveAllInColl().

| 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().


| 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.

| 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.

| void Moses::Syntax::S2T::PatternApplicationTrie::Extend | ( | const RuleTrieScope3::Node & | node, | |
| int | minPos, | |||
| const SentenceMap & | sentMap, | |||
| bool | followsGap | |||
| ) |
Definition at line 136 of file PatternApplicationTrie.cpp.
References end, Extend(), Moses::Range::GetEndPos(), Moses::Syntax::S2T::RuleTrieScope3::Node::GetNonTerminalChild(), Moses::Range::GetStartPos(), Moses::Syntax::S2T::RuleTrieScope3::Node::GetTerminalMap(), m_children, PatternApplicationTrie(), and Moses::Syntax::PVertex::span.
Referenced by Extend().


| 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().


| 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().


| bool Moses::Syntax::S2T::PatternApplicationTrie::IsGapNode | ( | ) | const [inline] |
| 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().

| 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().


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 59 of file PatternApplicationTrie.h.
Referenced by Moses::Syntax::S2T::Scope3Parser< Callback >::EnumerateHyperedges().
Definition at line 61 of file PatternApplicationTrie.h.
Referenced by Depth(), DetermineStartRange(), GetHighestTerminalNode(), GetLowestTerminalNode(), and ReadOffPatternApplicationKey().
Definition at line 60 of file PatternApplicationTrie.h.
Referenced by Moses::Syntax::S2T::TailLatticeBuilder::Build().
1.5.9