#include <pipeline.h>
Public Member Functions | |
bool | is_serial () const |
True if filter must receive stream in order. | |
virtual void * | operator() (void *item)=0 |
Operate on an item from the input stream, and return item for output stream. | |
virtual | ~filter () |
Destroy filter. | |
Protected Types | |
enum | mode { parallel = internal::CURRENT_VERSION, serial = internal::CURRENT_VERSION | internal::IS_SERIAL } |
For pipeline version 2 and earlier 0 is parallel and 1 is serial mode. | |
Protected Member Functions | |
filter (bool is_serial_) | |
filter (mode filter_mode) | |
Friends | |
class | internal::stage_task |
class | pipeline |
|
Destroy filter. If the filter was added to a pipeline, the pipeline must be destroyed first. |
|
Operate on an item from the input stream, and return item for output stream. Returns NULL if filter is a sink. |