All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
workerConsumer.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_THREAD_WORKER_CONSUMER_HPP
#define OPENPOSE_THREAD_WORKER_CONSUMER_HPP
#include <openpose/core/common.hpp>
#include <openpose/thread/worker.hpp>
namespace op
{
template<typename TDatums>
class WorkerConsumer : public Worker<TDatums>
{
public:
virtual ~WorkerConsumer();
inline void work(TDatums& tDatums)
{
workConsumer(tDatums);
}
protected:
virtual void workConsumer(const TDatums& tDatums) = 0;
};
}
// Implementation
namespace op
{
template<typename TDatums>
WorkerConsumer<TDatums>::~WorkerConsumer()
{
}
COMPILE_TEMPLATE_DATUM(WorkerConsumer);
}
#endif // OPENPOSE_THREAD_WORKER_CONSUMER_HPP
op::WorkerConsumer
Definition: workerConsumer.hpp:10
op::Worker
Definition: worker.hpp:9
op::WorkerConsumer::workConsumer
virtual void workConsumer(const TDatums &tDatums)=0
op::WorkerConsumer::~WorkerConsumer
virtual ~WorkerConsumer()
Definition: workerConsumer.hpp:33
op::WorkerConsumer::work
void work(TDatums &tDatums)
Definition: workerConsumer.hpp:15
common.hpp
worker.hpp
op::COMPILE_TEMPLATE_DATUM
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)