mosesdecoder/contrib/other-builds/moses2/Manager.h
Hieu Hoang 9e13596161 output
2015-10-26 21:11:47 +00:00

57 lines
947 B
C++

/*
* Manager.h
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#pragma once
#include <cstddef>
#include <string>
#include <vector>
#include "InputPaths.h"
#include "Stack.h"
#include "TargetPhrase.h"
#include "moses/Bitmaps.h"
#include "util/pool.hh"
class System;
class Phrase;
class SearchNormal;
class Manager {
public:
Manager(System &system, const std::string &inputStr);
virtual ~Manager();
util::Pool &GetPool()
{ return m_pool; }
const System &GetSystem() const
{ return m_system; }
Moses::Bitmaps &GetBitmaps()
{ return *m_bitmaps; }
const InputPaths &GetInputPaths() const
{ return m_inputPaths; }
const Hypothesis *GetBestHypothesis() const;
void Decode();
protected:
util::Pool &m_pool;
const System &m_system;
Phrase *m_input;
InputPaths m_inputPaths;
Moses::Bitmaps *m_bitmaps;
Moses::Range m_initRange;
TargetPhrase m_initPhrase;
std::vector<Stack> m_stacks;
SearchNormal *m_search;
};