PrevUpHomeNext

Class template segment<Input, terminated>

boost::pipeline::segment<Input, terminated>

Synopsis

// In header: <boost/pipeline/type_erasure.hpp>

template<typename Input> 
class segment<Input, terminated> {
public:
  // construct/copy/destruct
  segment(const segment< Input, terminated > &);
  segment(unspecified);

  // public member functions
  execution run(thread_pool &);
};

Description

Right terminated series of transformations consuming Input type of items.

Connect this segment to a segment<terminated, Input> segment to create a runnable plan.

segment public construct/copy/destruct

  1. segment(const segment< Input, terminated > & rhs);

    Copy constructor

  2. segment(unspecified impl);

    Creates a segment from any kind of matching segment of unspecified type.

    segment<std::string, terminated> s1 = make(trim) | trimmed_lines;
    

    Parameters:

    impl

    Any kind of right-terminated segment consuming Input

segment public member functions

  1. execution run(thread_pool & pool);

    Schedules this segment on pool. This method is typically called by the library.

    Requires:

    Segment must be connected to a parent segment, the uppermost parent must be left-terminated.


PrevUpHomeNext