YPC  0.2.0
processor_with_output.h
1 #pragma once
2 #include <hpda/common/common.h>
3 #include <hpda/engine/functor.h>
4 
5 namespace hpda {
6 namespace internal {
7 
8 template <typename OutputObjType>
9 class processor_with_output : virtual public functor {
10 public:
11  typedef OutputObjType output_type;
12  virtual ~processor_with_output() {}
13  virtual OutputObjType output_value() = 0;
14 };
15 
16 } // namespace internal
17 template <typename... ARGS>
19  internal::processor_with_output<ntobject<ARGS...>>;
20 template <typename T>
22 } // namespace hpda
hpda::internal::processor_with_output
Definition: processor_with_output.h:9
hpda::functor
Definition: functor.h:7