#include <Collection.h>
Inheritance diagram for Tagcoll::Collection< ITEM, TAG >:
Public Member Functions | |
virtual | ~Collection () |
virtual void | applyChange (const PatchList< ITEM, TAG > &change)=0 |
Apply a patch to the collection. | |
Protected Member Functions | |
void | consumeItemUntagged (const ITEM &) |
Process an untagged item. | |
void | consumeItemsUntagged (const OpSet< ITEM > &) |
Process a set of items, all with no tags. |
virtual Tagcoll::Collection< ITEM, TAG >::~Collection | ( | ) | [inline, virtual] |
virtual void Tagcoll::Collection< ITEM, TAG >::applyChange | ( | const PatchList< ITEM, TAG > & | change | ) | [pure virtual] |
Apply a patch to the collection.
Example:
void perform(const PatchList<ITEM, TAG>& change) { collection.applyChange(change); undo.push_back(change.getReverse()); }
Implemented in Tagcoll::CardinalityStore< ITEM, TAG >, Tagcoll::ItemGrouper< ITEM, TAG >, Tagcoll::PatchCollection< ITEM, TAG >, Tagcoll::TDBDiskIndex< ITEM, TAG >, Tagcoll::TDBIndexer< ITEM, TAG >, and Tagcoll::InputMerger< std::string, std::string >.
void Tagcoll::Collection< ITEM, TAG >::consumeItemsUntagged | ( | const OpSet< ITEM > & | ) | [inline, protected, virtual] |
void Tagcoll::Collection< ITEM, TAG >::consumeItemUntagged | ( | const ITEM & | ) | [inline, protected, virtual] |