20 #ifndef __TPIE_PIPELINING_VISIT_H__
21 #define __TPIE_PIPELINING_VISIT_H__
23 #include <tpie/pipelining/node.h>
24 #include <tpie/pipelining/pipe_base.h>
25 #include <tpie/pipelining/factory_helpers.h>
26 #include <tpie/pipelining/node_name.h>
29 namespace pipelining {
35 template <
typename dest_t>
41 typedef typename std::decay<typename unary_traits<F>::argument_type>
::type item_type;
42 type(dest_t dest,
const F & functor):
43 functor(functor), dest(std::move(dest)) {
44 set_name(bits::extract_pipe_name(
typeid(F).name()), PRIORITY_NO_NAME);
47 void push(
const item_type & item) {
68 #endif //__TPIE_PIPELINING_VISIT_H__
pipe_middle< tempfactory< bits::visit_t< F >, F > > visit(const F &functor)
A pipelining node that applies a functor to elements pushed to it.
Node factory for variadic argument templated generators.
void set_name(const std::string &name, priority_type priority=PRIORITY_USER)
Set this node's name.
A pipe_middle class pushes input down the pipeline.