#include <Filter.h>
Inheritance diagram for Tagcoll::Filter< ITEM, TAG >:
Public Member Functions | |
Filter () | |
Build an incomplete filter. | |
Filter (Consumer< ITEM, TAG > &consumer) | |
Build a filter passing the filtered stream to the given consumer. | |
virtual | ~Filter () |
bool | isComplete () |
Return true if the filter is not incomplete. | |
virtual Consumer< ITEM, TAG > & | getConsumer () const |
Access the filter's consumer. | |
virtual void | setConsumer (Consumer< ITEM, TAG > &consumer) |
Set or change the filter's consumer. | |
Protected Member Functions | |
virtual void | consumeItemUntagged (const ITEM &item) |
Process an untagged item. | |
virtual void | consumeItem (const ITEM &item, const OpSet< TAG > &tags) |
Process a tagged item, with its tags. | |
Protected Attributes | |
Consumer< ITEM, TAG > * | consumer |
The filter will not perform any memory management on its consumer: the caller must make sure that the lifetime of the Consumer is longer than the one of the Filter.
|
Build an incomplete filter. This is useful as an intermediate step when constructing filters, but an incomplete filter should never be used: it will not even throw an expection: it will segfault. In doubt, use the other version of the constructor. |
|
Build a filter passing the filtered stream to the given consumer.
|
|
|
|
|
|
Access the filter's consumer.
|
|
Return true if the filter is not incomplete.
|
|
Set or change the filter's consumer.
Reimplemented in Tagcoll::FilterChain< ITEM, TAG >. |
|
|