Tagcoll::Substitutions< T > Class Template Reference

Store a list of substitutions to operate on OpSets. More...

#include <Filters.h>

Inheritance diagram for Tagcoll::Substitutions< T >:

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::Substitutions< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Substitutions ()
change (const T &v) const
 Change a single value.
OpSet< T > change (const OpSet< T > &values) const
 Change all the items in a set.

Protected Types

typedef std::map< T, T > changes_t

Protected Member Functions

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

Protected Attributes

changes_t changes

Detailed Description

template<typename T>
class Tagcoll::Substitutions< T >

Store a list of substitutions to operate on OpSets.

It uses a Consumer interface to allow to be populated using a decoder for collections such as TextFormat.


Member Typedef Documentation

template<typename T>
typedef std::map<T, T> Tagcoll::Substitutions< T >::changes_t [protected]


Constructor & Destructor Documentation

template<typename T>
virtual Tagcoll::Substitutions< T >::~Substitutions (  )  [inline, virtual]


Member Function Documentation

template<typename T>
virtual void Tagcoll::Substitutions< T >::consumeItemUntagged ( const T &  item  )  [inline, protected, virtual]

Process an untagged item.

Implements Tagcoll::Consumer< T, T >.

template<typename T>
virtual void Tagcoll::Substitutions< T >::consumeItem ( const T &  item,
const OpSet< T > &  tags 
) [inline, protected, virtual]

Process a tagged item, with its tags.

Implements Tagcoll::Consumer< T, T >.

template<typename T>
virtual void Tagcoll::Substitutions< T >::consumeItemsUntagged ( const OpSet< T > &  items  )  [inline, protected, virtual]

Process a set of items, all with no tags.

Reimplemented from Tagcoll::Consumer< T, T >.

template<typename T>
T Tagcoll::Substitutions< T >::change ( const T &  v  )  const [inline]

Change a single value.

template<typename T>
OpSet<T> Tagcoll::Substitutions< T >::change ( const OpSet< T > &  values  )  const [inline]

Change all the items in a set.


Member Data Documentation

template<typename T>
changes_t Tagcoll::Substitutions< T >::changes [protected]


The documentation for this class was generated from the following file:
Generated on Sat Jan 17 06:15:14 2009 for libtagcoll by  doxygen 1.5.1