boost::pipeline::segment<terminated, Output>
// In header: <boost/pipeline/type_erasure.hpp> template<typename Output> class segment<terminated, Output> { public: // types typedef terminated root_type; typedef Output value_type; // construct/copy/destruct segment(const segment< terminated, Output > &); segment(unspecified); // public member functions template<typename NewOutput> segment< terminated, NewOutput > operator|(const segment< Output, NewOutput > &) const; void run(thread_pool &, const queue_back< Output > &); };
Left terminated series of transformations producing Output
type of items at the end.
Connect this segment to a segment<Output, terminated>
segment to create a runnable plan.
segment
public
construct/copy/destructsegment(const segment< terminated, Output > & rhs);
Copy constructor
segment(unspecified impl);
Creates a segment from any kind of matching segment of unspecified type.
segment<terminated, std::string> s1 = from(lines) | trim;
Parameters: |
|
segment
public member functionstemplate<typename NewOutput> segment< terminated, NewOutput > operator|(const segment< Output, NewOutput > & rhs) const;
Produces a new segment by concatenating rhs
after this segment. Please note, this
and rhs
remains unchanged.
void run(thread_pool & pool, const queue_back< Output > & target);
Schedules this segment on pool
and writes the produced output to target
. This method is typically called by the library.