2 #include <hpda/processor/processor_base.h>
8 template <
typename InputObjType>
11 template <
typename Func>
16 m_func(std::move(f)) {}
22 virtual bool process() {
23 if (!base::has_input_value()) {
26 auto b = m_func(base::input_value());
28 m_data = base::input_value().make_copy();
30 base::consume_input_value();
34 virtual InputObjType output_value() {
return m_data; }
37 typedef std::function<bool(
const InputObjType &)> predicate_func_t;
38 predicate_func_t m_func;
42 template <
typename... ARGS>