Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Tagcoll::TagCollection< ITEM, TAG > Class Template Reference

#include <TagCollection.h>

Inheritance diagram for Tagcoll::TagCollection< ITEM, TAG >:

Tagcoll::TagcollConsumer< ITEM, TAG > List of all members.

Public Types

typedef tagsets_t::const_iterator const_iterator
typedef tagsets_t::iterator iterator

Public Member Functions

 TagCollection () throw ()
 TagCollection (const TagCollection &tc) throw ()
virtual ~TagCollection () throw ()
TagCollectionoperator= (const TagCollection &tc) throw ()
iterator begin () throw ()
iterator end () throw ()
const_iterator begin () const throw ()
const_iterator end () const throw ()
int tagCount () const throw ()
int tagsetCount () const throw ()
int untaggedCount () const throw ()
int totalCount () const throw ()
OpSet< ITEM > getUntaggedItems () const throw ()
OpSet< ITEM > getItemsForTagset (const OpSet< TAG > &ts) const throw ()
OpSet< TAG > getTagsetForItem (const ITEM &item) const throw ()
OpSet< TAG > getAllTags () const throw ()
OpSet< TAG > getCompanionTags (const OpSet< TAG > &ts) const throw ()
OpSet< ITEM > getAllItems () const throw ()
OpSet< ITEM > getCompanionItems (const OpSet< TAG > &ts) const throw ()
std::map< ITEM, OpSet< TAG > > getCompanionItemsAndTagsets (const OpSet< TAG > &ts) const throw ()
std::list< OpSet< TAG > > getRelatedTagsets (const OpSet< TAG > &ts, int maxdistance=1) const throw ()
Change applyChange (const Change &change) throw ()
TagcollChange< ITEM, TAG > applyChange (const TagcollChange< ITEM, TAG > &change) throw ()
void add (const ITEM &item) throw ()
void add (const OpSet< ITEM > &items) throw ()
void add (const OpSet< TAG > &tagset, const ITEM &item) throw ()
void add (const OpSet< TAG > &tagset, const OpSet< ITEM > &items) throw ()
void consume (const ITEM &item) throw ()
void consume (const OpSet< ITEM > &items) throw ()
void consume (const ITEM &item, const OpSet< TAG > &tagset) throw ()
void consume (const OpSet< ITEM > &items, const OpSet< TAG > &tagset) throw ()
TagCollection< ITEM, TAG > getChildCollection (const TAG &tag) const throw ()
TagCollection< ITEM, TAG > getCollectionWithoutTags (const OpSet< TAG > &tag) const throw ()
TagCollection< ITEM, TAG > getCollectionWithoutTagsetsHaving (const TAG &tag) const throw ()
TagCollection< ITEM, TAG > getCollectionWithoutTagsetsHavingAnyOf (const OpSet< TAG > &tag) const throw ()
TAG findTagWithMaxCardinalityNotIn (const OpSet< TAG > &tags, int *card=0) const throw ()
OpSet< TAG > getImpliedBy (const TAG &tag) const throw ()
void mergeEquivalentTags () throw ()
void removeTagsWithCardinalityLessThan (int card) throw ()
void output (TagcollConsumer< ITEM, TAG > &cons) const throw ()

Protected Types

typedef std::map< OpSet< TAG >,
OpSet< ITEM > > 
tagsets_t

Protected Member Functions

OpSet< TAG > getImplyingOneOf (const OpSet< TAG > &tags) const throw ()

Protected Attributes

TagContainer tags
tagsets_t tagsets
OpSet< ITEM > untagged

template<class ITEM, class TAG>
class Tagcoll::TagCollection< ITEM, TAG >


Member Typedef Documentation

template<class ITEM, class TAG>
typedef tagsets_t::const_iterator Tagcoll::TagCollection< ITEM, TAG >::const_iterator
 

template<class ITEM, class TAG>
typedef tagsets_t::iterator Tagcoll::TagCollection< ITEM, TAG >::iterator
 

template<class ITEM, class TAG>
typedef std::map<OpSet<TAG>, OpSet<ITEM> > Tagcoll::TagCollection< ITEM, TAG >::tagsets_t [protected]
 


Constructor & Destructor Documentation

template<class ITEM, class TAG>
Tagcoll::TagCollection< ITEM, TAG >::TagCollection  )  throw () [inline]
 

template<class ITEM, class TAG>
Tagcoll::TagCollection< ITEM, TAG >::TagCollection const TagCollection< ITEM, TAG > &  tc  )  throw () [inline]
 

template<class ITEM, class TAG>
virtual Tagcoll::TagCollection< ITEM, TAG >::~TagCollection  )  throw () [inline, virtual]
 


Member Function Documentation

template<class ITEM, class TAG>
void TagCollection::add const OpSet< TAG > &  tagset,
const OpSet< ITEM > &  items
throw ()
 

template<class ITEM, class TAG>
void TagCollection::add const OpSet< TAG > &  tagset,
const ITEM &  item
throw ()
 

template<class ITEM, class TAG>
void TagCollection::add const OpSet< ITEM > &  items  )  throw ()
 

template<class ITEM, class TAG>
void TagCollection::add const ITEM &  item  )  throw ()
 

template<class ITEM, class TAG>
TagcollChange< ITEM, TAG > TagCollection::applyChange const TagcollChange< ITEM, TAG > &  change  )  throw ()
 

template<class ITEM, class TAG>
TagCollection< ITEM, TAG >::Change TagCollection::applyChange const Change change  )  throw ()
 

template<class ITEM, class TAG>
const_iterator Tagcoll::TagCollection< ITEM, TAG >::begin  )  const throw () [inline]
 

template<class ITEM, class TAG>
iterator Tagcoll::TagCollection< ITEM, TAG >::begin  )  throw () [inline]
 

template<class ITEM, class TAG>
void Tagcoll::TagCollection< ITEM, TAG >::consume const OpSet< ITEM > &  items,
const OpSet< TAG > &  tagset
throw () [inline, virtual]
 

Reimplemented from Tagcoll::TagcollConsumer< ITEM, TAG >.

template<class ITEM, class TAG>
void Tagcoll::TagCollection< ITEM, TAG >::consume const ITEM &  item,
const OpSet< TAG > &  tagset
throw () [inline, virtual]
 

Implements Tagcoll::TagcollConsumer< ITEM, TAG >.

template<class ITEM, class TAG>
void Tagcoll::TagCollection< ITEM, TAG >::consume const OpSet< ITEM > &  items  )  throw () [inline, virtual]
 

Reimplemented from Tagcoll::TagcollConsumer< ITEM, TAG >.

template<class ITEM, class TAG>
void Tagcoll::TagCollection< ITEM, TAG >::consume const ITEM &  item  )  throw () [inline, virtual]
 

Implements Tagcoll::TagcollConsumer< ITEM, TAG >.

template<class ITEM, class TAG>
const_iterator Tagcoll::TagCollection< ITEM, TAG >::end  )  const throw () [inline]
 

template<class ITEM, class TAG>
iterator Tagcoll::TagCollection< ITEM, TAG >::end  )  throw () [inline]
 

template<class ITEM, class TAG>
TAG TagCollection::findTagWithMaxCardinalityNotIn const OpSet< TAG > &  tags,
int *  card = 0
const throw ()
 

template<class ITEM, class TAG>
OpSet< ITEM > TagCollection::getAllItems  )  const throw ()
 

template<class ITEM, class TAG>
OpSet< TAG > TagCollection::getAllTags  )  const throw ()
 

template<class ITEM, class TAG>
TagCollection< ITEM, TAG > TagCollection::getChildCollection const TAG &  tag  )  const throw ()
 

template<class ITEM, class TAG>
TagCollection< ITEM, TAG > TagCollection::getCollectionWithoutTags const OpSet< TAG > &  tag  )  const throw ()
 

template<class ITEM, class TAG>
TagCollection< ITEM, TAG > TagCollection::getCollectionWithoutTagsetsHaving const TAG &  tag  )  const throw ()
 

template<class ITEM, class TAG>
TagCollection< ITEM, TAG > TagCollection::getCollectionWithoutTagsetsHavingAnyOf const OpSet< TAG > &  tag  )  const throw ()
 

template<class ITEM, class TAG>
OpSet< ITEM > TagCollection::getCompanionItems const OpSet< TAG > &  ts  )  const throw ()
 

template<class ITEM, class TAG>
map< ITEM, OpSet< TAG > > TagCollection::getCompanionItemsAndTagsets const OpSet< TAG > &  ts  )  const throw ()
 

template<class ITEM, class TAG>
OpSet< TAG > TagCollection::getCompanionTags const OpSet< TAG > &  ts  )  const throw ()
 

template<class ITEM, class TAG>
OpSet< TAG > TagCollection::getImpliedBy const TAG &  tag  )  const throw ()
 

template<class ITEM, class TAG>
OpSet< TAG > TagCollection::getImplyingOneOf const OpSet< TAG > &  tags  )  const throw () [protected]
 

template<class ITEM, class TAG>
OpSet< ITEM > TagCollection::getItemsForTagset const OpSet< TAG > &  ts  )  const throw ()
 

template<class ITEM, class TAG>
list< OpSet< TAG > > TagCollection::getRelatedTagsets const OpSet< TAG > &  ts,
int  maxdistance = 1
const throw ()
 

template<class ITEM, class TAG>
OpSet< TAG > TagCollection::getTagsetForItem const ITEM &  item  )  const throw ()
 

template<class ITEM, class TAG>
OpSet<ITEM> Tagcoll::TagCollection< ITEM, TAG >::getUntaggedItems  )  const throw () [inline]
 

template<class ITEM, class TAG>
void TagCollection::mergeEquivalentTags  )  throw ()
 

template<class ITEM, class TAG>
TagCollection& Tagcoll::TagCollection< ITEM, TAG >::operator= const TagCollection< ITEM, TAG > &  tc  )  throw () [inline]
 

template<class ITEM, class TAG>
void TagCollection::output TagcollConsumer< ITEM, TAG > &  cons  )  const throw ()
 

template<class ITEM, class TAG>
void TagCollection::removeTagsWithCardinalityLessThan int  card  )  throw ()
 

template<class ITEM, class TAG>
int Tagcoll::TagCollection< ITEM, TAG >::tagCount  )  const throw () [inline]
 

template<class ITEM, class TAG>
int Tagcoll::TagCollection< ITEM, TAG >::tagsetCount  )  const throw () [inline]
 

template<class ITEM, class TAG>
int TagCollection::totalCount  )  const throw ()
 

template<class ITEM, class TAG>
int Tagcoll::TagCollection< ITEM, TAG >::untaggedCount  )  const throw () [inline]
 


Member Data Documentation

template<class ITEM, class TAG>
TagContainer Tagcoll::TagCollection< ITEM, TAG >::tags [protected]
 

template<class ITEM, class TAG>
tagsets_t Tagcoll::TagCollection< ITEM, TAG >::tagsets [protected]
 

template<class ITEM, class TAG>
OpSet<ITEM> Tagcoll::TagCollection< ITEM, TAG >::untagged [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 19:46:00 2004 for libtagcoll by  doxygen 1.3.9.1