Moses::PCFG::RuleCollection Class Reference

#include <rule_collection.h>

List of all members.

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 &)


Detailed Description

Definition at line 36 of file rule_collection.h.


Member Typedef Documentation

typedef Map::const_iterator Moses::PCFG::RuleCollection::const_iterator

Definition at line 42 of file rule_collection.h.

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.


Constructor & Destructor Documentation

Moses::PCFG::RuleCollection::RuleCollection (  )  [inline]

Definition at line 44 of file rule_collection.h.


Member Function Documentation

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:


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

Generated on Thu Jun 4 00:32:54 2015 for Moses by  doxygen 1.5.9