#include <rule_collection.h>
Public Types | |
typedef boost::unordered_map < std::vector< std::size_t > , std::size_t > | RhsCountMap |
typedef boost::unordered_map < std::size_t, RhsCountMap > | Map |
typedef Map::iterator | iterator |
typedef Map::const_iterator | const_iterator |
Public Member Functions | |
RuleCollection () | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | Add (std::size_t, const std::vector< std::size_t > &) |
void | CreatePcfg (Pcfg &) |
Definition at line 36 of file rule_collection.h.
typedef Map::const_iterator Moses::PCFG::RuleCollection::const_iterator |
Definition at line 42 of file rule_collection.h.
typedef Map::iterator Moses::PCFG::RuleCollection::iterator |
Definition at line 41 of file rule_collection.h.
typedef boost::unordered_map<std::size_t, RhsCountMap> Moses::PCFG::RuleCollection::Map |
Definition at line 40 of file rule_collection.h.
typedef boost::unordered_map<std::vector<std::size_t>, std::size_t> Moses::PCFG::RuleCollection::RhsCountMap |
Definition at line 39 of file rule_collection.h.
Moses::PCFG::RuleCollection::RuleCollection | ( | ) | [inline] |
Definition at line 44 of file rule_collection.h.
void Moses::PCFG::RuleCollection::Add | ( | std::size_t | lhs, | |
const std::vector< std::size_t > & | rhs | |||
) |
Definition at line 29 of file rule_collection.cc.
Referenced by Moses::PCFG::RuleExtractor::Extract().
const_iterator Moses::PCFG::RuleCollection::begin | ( | ) | const [inline] |
Definition at line 49 of file rule_collection.h.
iterator Moses::PCFG::RuleCollection::begin | ( | ) | [inline] |
Definition at line 46 of file rule_collection.h.
Referenced by CreatePcfg().
void Moses::PCFG::RuleCollection::CreatePcfg | ( | Pcfg & | pcfg | ) |
Definition at line 33 of file rule_collection.cc.
References Moses::PCFG::Pcfg::Add(), begin(), count, end(), and key.
Referenced by Moses::PCFG::PcfgExtract::Main().
const_iterator Moses::PCFG::RuleCollection::end | ( | ) | const [inline] |
Definition at line 56 of file rule_collection.h.
iterator Moses::PCFG::RuleCollection::end | ( | ) | [inline] |
Definition at line 53 of file rule_collection.h.
Referenced by CreatePcfg().