FactorCollection is a friend of moses2 System

This commit is contained in:
Hieu Hoang 2015-10-26 13:51:21 +00:00
parent 75c052dc66
commit 6d72539a22
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include "Vocab.h"
#include "Weights.h"
#include "util/pool.hh"
#include "moses/FactorCollection.h"
class FeatureFunction;
class StatefulFeatureFunction;
@ -40,6 +41,7 @@ public:
protected:
Vocab m_vocab;
Moses::FactorCollection m_factors;
std::vector<const FeatureFunction*> m_featureFunctions;
std::vector<const StatefulFeatureFunction*> m_statefulFeatureFunctions;
std::vector<const PhraseTable*> m_phraseTables;

View File

@ -41,6 +41,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "util/pool.hh"
#include "Factor.h"
class System;
namespace Moses
{
@ -66,6 +68,7 @@ struct FactorFriend {
class FactorCollection
{
friend std::ostream& operator<<(std::ostream&, const FactorCollection&);
friend class ::System;
struct HashFactor : public std::unary_function<const FactorFriend &, std::size_t> {
std::size_t operator()(const FactorFriend &factor) const {