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
workerProducer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_THREAD_WORKER_PRODUCER_HPP
2 #define OPENPOSE_THREAD_WORKER_PRODUCER_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 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>
33 WorkerProducer<TDatums>::~WorkerProducer()
34 {
35 }
36
37 COMPILE_TEMPLATE_DATUM(WorkerProducer);
38 }
39
40 #endif // OPENPOSE_THREAD_WORKER_PRODUCER_HPP
op::WorkerProducer::workProducer
virtual TDatums workProducer()=0
op::WorkerProducer::~WorkerProducer
virtual ~WorkerProducer()
Definition: workerProducer.hpp:33
op::Worker
Definition: worker.hpp:9
common.hpp
op::WorkerProducer
Definition: workerProducer.hpp:10
worker.hpp
op::WorkerProducer::work
void work(TDatums &tDatums)
Definition: workerProducer.hpp:15
op::COMPILE_TEMPLATE_DATUM
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)