#include <HyperTree.h>
Public Types | |
typedef boost::unordered_map < HyperPath::NodeSeq, Node > | Map |
Public Member Functions | |
bool | IsLeaf () const |
bool | HasRules () const |
void | Prune (std::size_t tableLimit) |
void | Sort (std::size_t tableLimit) |
Node * | GetOrCreateChild (const HyperPath::NodeSeq &) |
const Node * | GetChild (const HyperPath::NodeSeq &) const |
TargetPhraseCollection::shared_ptr | GetTargetPhraseCollection () const |
TargetPhraseCollection::shared_ptr | GetTargetPhraseCollection () |
const Map & | GetMap () const |
Node () |
Definition at line 30 of file HyperTree.h.
typedef boost::unordered_map<HyperPath::NodeSeq, Node> Moses::Syntax::F2S::HyperTree::Node::Map |
Definition at line 33 of file HyperTree.h.
Moses::Syntax::F2S::HyperTree::Node::Node | ( | ) | [inline] |
Definition at line 64 of file HyperTree.h.
const HyperTree::Node * Moses::Syntax::F2S::HyperTree::Node::GetChild | ( | const HyperPath::NodeSeq & | nodeSeq | ) | const |
Definition at line 36 of file HyperTree.cpp.
References NULL.
Referenced by Moses::Syntax::F2S::RuleMatcherHyperTree< Callback >::EnumerateHyperedges().
const Map& Moses::Syntax::F2S::HyperTree::Node::GetMap | ( | ) | const [inline] |
Definition at line 60 of file HyperTree.h.
HyperTree::Node * Moses::Syntax::F2S::HyperTree::Node::GetOrCreateChild | ( | const HyperPath::NodeSeq & | nodeSeq | ) |
Definition at line 30 of file HyperTree.cpp.
TargetPhraseCollection::shared_ptr Moses::Syntax::F2S::HyperTree::Node::GetTargetPhraseCollection | ( | ) | [inline] |
Definition at line 56 of file HyperTree.h.
TargetPhraseCollection::shared_ptr Moses::Syntax::F2S::HyperTree::Node::GetTargetPhraseCollection | ( | ) | const [inline] |
Definition at line 51 of file HyperTree.h.
bool Moses::Syntax::F2S::HyperTree::Node::HasRules | ( | ) | const [inline] |
Definition at line 39 of file HyperTree.h.
bool Moses::Syntax::F2S::HyperTree::Node::IsLeaf | ( | ) | const [inline] |
Definition at line 35 of file HyperTree.h.
void Moses::Syntax::F2S::HyperTree::Node::Prune | ( | std::size_t | tableLimit | ) |
Definition at line 10 of file HyperTree.cpp.
void Moses::Syntax::F2S::HyperTree::Node::Sort | ( | std::size_t | tableLimit | ) |
Definition at line 20 of file HyperTree.cpp.