#include <Filters.h>
Inheritance diagram for Tagcoll::Substitute< ITEM, TAG >:


Public Member Functions | |
| Substitute () | |
| Substitute (Consumer< ITEM, TAG > &cons) | |
| Substitute (const Substitutions< TAG > &changes) | |
| Substitute (Consumer< ITEM, TAG > &cons, const Substitutions< TAG > &changes) | |
| Substitutions< TAG > & | substitutions () |
| Access the internal Substitution list. | |
| const Substitutions< TAG > & | substitutions () const |
| Access the internal Substitution list (const version). | |
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 | consumeItem (const OpSet< ITEM > &items, const OpSet< TAG > &tags) |
Protected Attributes | |
| Substitutions< TAG > | changes |
Example:
Substitute<Item, Tag> filter(consumer); // Parse substitutions from a file into the filter TextFormat<Item, Tag>::parse(itemconv, tagconv, input, filter.substitutions()); // Filter the collection coll.output(filter);
| Tagcoll::Substitute< ITEM, TAG >::Substitute | ( | ) | [inline] |
| Tagcoll::Substitute< ITEM, TAG >::Substitute | ( | Consumer< ITEM, TAG > & | cons | ) | [inline] |
| Tagcoll::Substitute< ITEM, TAG >::Substitute | ( | const Substitutions< TAG > & | changes | ) | [inline] |
| Tagcoll::Substitute< ITEM, TAG >::Substitute | ( | Consumer< ITEM, TAG > & | cons, | |
| const Substitutions< TAG > & | changes | |||
| ) | [inline] |
| virtual void Tagcoll::Substitute< ITEM, TAG >::consumeItemUntagged | ( | const ITEM & | item | ) | [inline, protected, virtual] |
| virtual void Tagcoll::Substitute< ITEM, TAG >::consumeItem | ( | const ITEM & | item, | |
| const OpSet< TAG > & | tags | |||
| ) | [inline, protected, virtual] |
| virtual void Tagcoll::Substitute< ITEM, TAG >::consumeItemsUntagged | ( | const OpSet< ITEM > & | items | ) | [inline, protected, virtual] |
| virtual void Tagcoll::Substitute< ITEM, TAG >::consumeItem | ( | const OpSet< ITEM > & | items, | |
| const OpSet< TAG > & | tags | |||
| ) | [inline, protected, virtual] |
| Substitutions<TAG>& Tagcoll::Substitute< ITEM, TAG >::substitutions | ( | ) | [inline] |
Access the internal Substitution list.
| const Substitutions<TAG>& Tagcoll::Substitute< ITEM, TAG >::substitutions | ( | ) | const [inline] |
Access the internal Substitution list (const version).
Substitutions<TAG> Tagcoll::Substitute< ITEM, TAG >::changes [protected] |
1.5.1