OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
workerConsumer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_THREAD_WORKER_CONSUMER_HPP
2 #define OPENPOSE_THREAD_WORKER_CONSUMER_HPP
3 
6 
7 namespace op
8 {
9  template<typename TDatums>
10  class WorkerConsumer : public Worker<TDatums>
11  {
12  public:
13  virtual ~WorkerConsumer();
14 
15  inline void work(TDatums& tDatums)
16  {
17  workConsumer(tDatums);
18  }
19 
20  protected:
21  virtual void workConsumer(const TDatums& tDatums) = 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_CONSUMER_HPP
Definition: workerConsumer.hpp:10
Definition: worker.hpp:9
virtual void workConsumer(const TDatums &tDatums)=0
virtual ~WorkerConsumer()
Definition: workerConsumer.hpp:33
void work(TDatums &tDatums)
Definition: workerConsumer.hpp:15
COMPILE_TEMPLATE_DATUM(WCvMatToOpInput)