user ManagerBase

This commit is contained in:
Hieu Hoang 2016-03-01 19:28:49 +00:00
parent 8182946d3c
commit 00ada25b73
3 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,7 @@ namespace Moses2
class Sentence;
class System;
class Manager;
class ManagerBase;
class InputPathsBase
{
@ -44,7 +44,7 @@ public:
return m_inputPaths.end();
}
virtual void Init(const Sentence &input, const Manager &mgr) = 0;
virtual void Init(const Sentence &input, const ManagerBase &mgr) = 0;
const Matrix<InputPath*> &GetMatrix() const
{ return *m_matrix; }

View File

@ -16,7 +16,7 @@ using namespace std;
namespace Moses2
{
void InputPaths::Init(const Sentence &input, const Manager &mgr)
void InputPaths::Init(const Sentence &input, const ManagerBase &mgr)
{
MemPool &pool = mgr.GetPool();
size_t numPt = mgr.system.mappings.size();

View File

@ -18,12 +18,11 @@ namespace Moses2
class Sentence;
class System;
class Manager;
class InputPaths : public InputPathsBase
{
public:
void Init(const Sentence &input, const Manager &mgr);
void Init(const Sentence &input, const ManagerBase &mgr);
const InputPath &GetBlank() const
{ return *m_blank; }