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

template<class ITEM, class TAG>
OpSet< TAG > CardinalityStore::getTagsOfItems ( const OpSet< ITEM > &  items  )  const [inline, protected, virtual]

Get all the tags attached to the items in a set.

items The items to query
The set of tags, or an empty set if the items have no tags or do not exist.

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

Definition at line 236 of file CardinalityStore.cc.

      OpSet<TAG> res;
      for (typename tagsets_t::const_iterator t = tagsets.begin();
                  t != tagsets.end(); t++)
            if (!(t->second ^ items).empty())
                  res +=  t->first;
      return res;

Generated by  Doxygen 1.6.0   Back to index