Logo Search packages:      
Sourcecode: tagcoll version File versions  Download package

Tagcoll::Filter< ITEM, TAG > Class Template Reference

#include <Filter.h>

Inheritance diagram for Tagcoll::Filter< ITEM, TAG >:

Tagcoll::Consumer< ITEM, TAG > Tagcoll::AddImplied< ITEM, TAG > Tagcoll::FilterChain< ITEM, TAG > Tagcoll::FilterItemsByExpression< ITEM, TAG > Tagcoll::FilterTagsByExpression< ITEM, TAG > Tagcoll::PatchList< ITEM, TAG > Tagcoll::RemoveImplied< ITEM, TAG > Tagcoll::Substitute< ITEM, TAG > Tagcoll::UntaggedRemover< ITEM, TAG >

List of all members.


Detailed Description

template<typename ITEM, typename TAG>
class Tagcoll::Filter< ITEM, TAG >

Interface for injecting or removing packages from a stream of tagged items

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.

Definition at line 39 of file Filter.h.


Public Member Functions

void consume (const OpSet< ITEM > &items, const OpSet< TAG > &tags)
 Process a set of items identically tagged, with their tags.
void consume (const OpSet< ITEM > &items)
 Process a set of items, all with no tags.
void consume (const ITEM &item, const OpSet< TAG > &tags)
 Process a tagged item, with its tags.
void consume (const ITEM &item)
 Process an untagged item.
 Filter (Consumer< ITEM, TAG > &consumer)
 Filter ()
virtual Consumer< ITEM, TAG > & getConsumer () const
 Access the filter's consumer.
bool isComplete ()
 Return true if the filter is not incomplete.
virtual void setConsumer (Consumer< ITEM, TAG > &consumer)
 Set or change the filter's consumer.

Protected Member Functions

virtual void consumeItem (const ITEM &item, const OpSet< TAG > &tags)
 Process a tagged item, with its tags.
virtual void consumeItems (const OpSet< ITEM > &items, const OpSet< TAG > &tags)
 Process a set of items identically tagged, with their tags.
virtual void consumeItemsUntagged (const OpSet< ITEM > &items)
 Process a set of items, all with no tags.
virtual void consumeItemUntagged (const ITEM &item)
 Process an untagged item.

Protected Attributes

Consumer< ITEM, TAG > * consumer

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

Generated by  Doxygen 1.6.0   Back to index