20 #ifndef __TPIE_PIPELINING_FILTER_H__
21 #define __TPIE_PIPELINING_FILTER_H__
23 #include <tpie/pipelining/map.h>
24 #include <tpie/pipelining/node.h>
25 #include <tpie/pipelining/pipe_base.h>
26 #include <tpie/pipelining/factory_helpers.h>
27 #include <tpie/pipelining/node_name.h>
32 template <
typename dest_t,
typename F>
38 typedef typename std::decay<typename unary_traits<F>::argument_type>::type funct_arg_type;
39 typedef typename push_type<dest_t, funct_arg_type>::type item_type;
40 filter_t(dest_t dest,
const F & functor):
41 functor(functor), dest(std::move(dest)) {
42 set_name(bits::extract_pipe_name(
typeid(F).name()), PRIORITY_NO_NAME);
45 void push(
const item_type & item) {
66 #endif //__TPIE_PIPELINING_FILTER_H__