Logo Search packages:      
Sourcecode: tagcoll version File versions  Download package

Tagcoll::Implications< TAG > Class Template Reference

#include <Implications.h>

Inheritance diagram for Tagcoll::Implications< TAG >:

Tagcoll::Consumer< TAG, TAG >

List of all members.


Detailed Description

template<class TAG>
class Tagcoll::Implications< TAG >

List of explicit implications that can be applied to a tagged collection.

Definition at line 38 of file Implications.h.


Public Member Functions

OpSet< TAG > compress (const OpSet< TAG > &tags) const
 Compress a tagset removing implied tags.
void consume (const OpSet< TAG > &items, const OpSet< TAG > &tags)
 Process a set of items identically tagged, with their tags.
void consume (const OpSet< TAG > &items)
 Process a set of items, all with no tags.
void consume (const TAG &item, const OpSet< TAG > &tags)
 Process a tagged item, with its tags.
void consume (const TAG &item)
 Process an untagged item.
OpSet< TAG > expand (const OpSet< TAG > &tags) const
 Expand a full tagset.
OpSet< TAG > expand (const TAG &tag) const
 Expand a single tag.
void output (Consumer< TAG, TAG > &consumer) const
void outputFull (Consumer< TAG, TAG > &consumer) const
void pack ()

Protected Types

typedef std::map< TAG, OpSet
< TAG > > 
impl_t

Protected Member Functions

virtual void consumeItem (const TAG &item, const OpSet< TAG > &tags)
 Process a tagged item, with its tags.
virtual void consumeItems (const OpSet< TAG > &items, const OpSet< TAG > &tags)
 Process a set of items identically tagged, with their tags.
virtual void consumeItemsUntagged (const OpSet< TAG > &items)
 Process a set of items, all with no tags.
virtual void consumeItemUntagged (const TAG &item)
 Process an untagged item.
OpSet< TAG > getDestinations (const TAG &tag, const OpSet< TAG > &seen=OpSet< TAG >()) const
 Get the set of all tags seen when walking through all parent lists.
bool reaches (const TAG &tag1, const TAG &tag2, const OpSet< TAG > &seen=OpSet< TAG >()) const
 Return true if tag1 can reach tag2 walking through some path in its parent list.

Protected Attributes

impl_t implications

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index