OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
workerProducer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_THREAD_WORKER_PRODUCER_HPP
2 #define OPENPOSE_THREAD_WORKER_PRODUCER_HPP
3 
6 
7 namespace op
8 {
9  template<typename TDatums>
10  class WorkerProducer : public Worker<TDatums>
11  {
12  public:
13  virtual ~WorkerProducer();
14 
15  inline void work(TDatums& tDatums)
16  {
17  tDatums = std::move(workProducer());
18  }
19 
20  protected:
21  virtual TDatums workProducer() = 0;
22  };
23 }
24 
25 
26 
27 
28 
29 // Implementation
30 namespace op
31 {
32  template<typename TDatums>
34  {
35  }
36 
38 }
39 
40 #endif // OPENPOSE_THREAD_WORKER_PRODUCER_HPP
virtual TDatums workProducer()=0
virtual ~WorkerProducer()
Definition: workerProducer.hpp:33
Definition: worker.hpp:9
Definition: workerProducer.hpp:10
void work(TDatums &tDatums)
Definition: workerProducer.hpp:15
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)