#include <Filters.h>
Public Member Functions | |
virtual | ~Substitutions () |
T | 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 |
It uses a Consumer interface to allow to be populated using a decoder for collections such as TextFormat.
typedef std::map<T, T> Tagcoll::Substitutions< T >::changes_t [protected] |
virtual Tagcoll::Substitutions< T >::~Substitutions | ( | ) | [inline, virtual] |
virtual void Tagcoll::Substitutions< T >::consumeItemUntagged | ( | const T & | item | ) | [inline, protected, virtual] |
virtual void Tagcoll::Substitutions< T >::consumeItem | ( | const T & | item, | |
const OpSet< T > & | tags | |||
) | [inline, protected, virtual] |
virtual void Tagcoll::Substitutions< T >::consumeItemsUntagged | ( | const OpSet< T > & | items | ) | [inline, protected, virtual] |
T Tagcoll::Substitutions< T >::change | ( | const T & | v | ) | const [inline] |
Change a single value.
OpSet<T> Tagcoll::Substitutions< T >::change | ( | const OpSet< T > & | values | ) | const [inline] |
Change all the items in a set.
changes_t Tagcoll::Substitutions< T >::changes [protected] |