mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
23 lines
492 B
C++
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;
|
|
};
|