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

Remove packages with no tags. More...

#include <Filters.h>

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

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::UntaggedRemover< ITEM, TAG >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UntaggedRemover (bool inverse=false)
 UntaggedRemover (Tagcoll::Consumer< ITEM, TAG > &cons, bool inverse=false)
virtual ~UntaggedRemover ()

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.
virtual void consumeItemsUntagged (const OpSet< ITEM > &items)
 Process a set of items, all with no tags.
virtual void consumeItemss (const OpSet< ITEM > &items, const OpSet< TAG > &tags)

Protected Attributes

bool inverse

Detailed Description

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

Remove packages with no tags.

It can also be used in 'inverse' mode, where in removes the packages which have tags and keeps the packages that have none.


Constructor & Destructor Documentation

template<typename ITEM, typename TAG>
Tagcoll::UntaggedRemover< ITEM, TAG >::UntaggedRemover bool  inverse = false  )  [inline]
 

template<typename ITEM, typename TAG>
Tagcoll::UntaggedRemover< ITEM, TAG >::UntaggedRemover Tagcoll::Consumer< ITEM, TAG > &  cons,
bool  inverse = false
[inline]
 

template<typename ITEM, typename TAG>
virtual Tagcoll::UntaggedRemover< ITEM, TAG >::~UntaggedRemover  )  [inline, virtual]
 


Member Function Documentation

template<typename ITEM, typename TAG>
virtual void Tagcoll::UntaggedRemover< ITEM, TAG >::consumeItem const ITEM &  item,
const OpSet< TAG > &  tags
[inline, protected, virtual]
 

Process a tagged item, with its tags.

Reimplemented from Tagcoll::Filter< ITEM, TAG >.

template<typename ITEM, typename TAG>
virtual void Tagcoll::UntaggedRemover< ITEM, TAG >::consumeItemss const OpSet< ITEM > &  items,
const OpSet< TAG > &  tags
[inline, protected, virtual]
 

template<typename ITEM, typename TAG>
virtual void Tagcoll::UntaggedRemover< ITEM, TAG >::consumeItemsUntagged const OpSet< ITEM > &  items  )  [inline, protected, virtual]
 

Process a set of items, all with no tags.

Reimplemented from Tagcoll::Consumer< ITEM, TAG >.

template<typename ITEM, typename TAG>
virtual void Tagcoll::UntaggedRemover< ITEM, TAG >::consumeItemUntagged const ITEM &  item  )  [inline, protected, virtual]
 

Process an untagged item.

Reimplemented from Tagcoll::Filter< ITEM, TAG >.


Member Data Documentation

template<typename ITEM, typename TAG>
bool Tagcoll::UntaggedRemover< ITEM, TAG >::inverse [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 22:43:33 2006 for libtagcoll by  doxygen 1.4.6