Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

tbb::filter Class Reference
[Algorithms]

A stage in a pipeline. More...

#include <pipeline.h>

List of all members.

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


Detailed Description

A stage in a pipeline.


Constructor & Destructor Documentation

virtual tbb::filter::~filter  )  [virtual]
 

Destroy filter.

If the filter was added to a pipeline, the pipeline must be destroyed first.


Member Function Documentation

virtual void* tbb::filter::operator() void *  item  )  [pure virtual]
 

Operate on an item from the input stream, and return item for output stream.

Returns NULL if filter is a sink.


The documentation for this class was generated from the following file:

Copyright © 2005-2008 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.