MosesTraining::Syntax::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 38 of file rule_collection.h.


Member Typedef Documentation

Definition at line 44 of file rule_collection.h.

Definition at line 43 of file rule_collection.h.

typedef boost::unordered_map<std::size_t, RhsCountMap> MosesTraining::Syntax::PCFG::RuleCollection::Map

Definition at line 42 of file rule_collection.h.

typedef boost::unordered_map<std::vector<std::size_t>, std::size_t> MosesTraining::Syntax::PCFG::RuleCollection::RhsCountMap

Definition at line 41 of file rule_collection.h.


Constructor & Destructor Documentation

MosesTraining::Syntax::PCFG::RuleCollection::RuleCollection (  )  [inline]

Definition at line 46 of file rule_collection.h.


Member Function Documentation

void MosesTraining::Syntax::PCFG::RuleCollection::Add ( std::size_t  lhs,
const std::vector< std::size_t > &  rhs 
)

Definition at line 33 of file rule_collection.cc.

Referenced by MosesTraining::Syntax::PCFG::RuleExtractor::Extract().

Here is the caller graph for this function:

const_iterator MosesTraining::Syntax::PCFG::RuleCollection::begin (  )  const [inline]

Definition at line 51 of file rule_collection.h.

iterator MosesTraining::Syntax::PCFG::RuleCollection::begin (  )  [inline]

Definition at line 48 of file rule_collection.h.

Referenced by CreatePcfg().

Here is the caller graph for this function:

void MosesTraining::Syntax::PCFG::RuleCollection::CreatePcfg ( Pcfg pcfg  ) 

Definition at line 38 of file rule_collection.cc.

References MosesTraining::Syntax::Pcfg::Add(), begin(), count, end(), and key.

Referenced by MosesTraining::Syntax::PCFG::PcfgExtract::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

const_iterator MosesTraining::Syntax::PCFG::RuleCollection::end (  )  const [inline]

Definition at line 58 of file rule_collection.h.

iterator MosesTraining::Syntax::PCFG::RuleCollection::end (  )  [inline]

Definition at line 55 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 Jul 6 00:34:11 2017 for Moses by  doxygen 1.5.9