20 #ifndef __TPIE_PIPELINING_FORWARDER_H__
21 #define __TPIE_PIPELINING_FORWARDER_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 {
32 template <
typename dest_t>
36 typedef std::vector<std::pair<std::string, any_noncopyable> > values_t;
39 : values(std::move(values)), dest(std::move(dest)) {}
42 for (
typename values_t::iterator i=values.begin(); i != values.end(); ++i)
47 void push(T && t) {dest.push(std::forward<T>(t));}
49 std::vector<std::pair<std::string, any_noncopyable> > values;
67 template <
typename VT>
69 std::vector<std::pair<std::string, any_noncopyable> > v;
77 #endif //__TPIE_PIPELINING_FORWARDER_H__
pipe_middle< factory< bits::Forwarder, std::vector< std::pair< std::string, any_noncopyable > > > > forwarder(std::vector< std::pair< std::string, any_noncopyable > > items)
A pipelining node that will forward values on prepare, and.
void forward_any(std::string key, any_noncopyable value, memory_size_type k=std::numeric_limits< memory_size_type >::max())
See node::forward.
void prepare() override
Called before memory assignment but after depending phases have executed and ended.
Class to deduce the item_type of a node of type T.
Node factory for variadic argument generators.
A pipe_middle class pushes input down the pipeline.