mosesdecoder/contrib/other-builds/moses2/TranslationTask.h
2015-12-08 18:18:44 +00:00

23 lines
492 B
C++

#pragma once
#include <string>
#include <boost/pool/object_pool.hpp>
#include "legacy/ThreadPool.h"
#include "Search/CubePruning/Misc.h"
class System;
class Manager;
class TranslationTask : public Task
{
public:
mutable boost::object_pool<NSCubePruning::CubeEdge> poolCubeEdge;
mutable boost::object_pool<NSCubePruning::QueueItem> poolQueueItem;
TranslationTask(System &system, const std::string &line);
virtual ~TranslationTask();
virtual void Run();
protected:
Manager *m_mgr;
};