OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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
4 #include <openpose/core/common.hpp>
5 #include <openpose/thread/worker.hpp>
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>
33 WorkerConsumer<TDatums>::~WorkerConsumer()
34 {
35 }
36
37 COMPILE_TEMPLATE_DATUM(WorkerConsumer);
38 }
39
40 #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)