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

template<class ITEM, class TAG>
OpSet< TAG > CardinalityStore::getCompanionTags ( const OpSet< TAG > &  tags  )  const [inline, virtual]

Get the set of all tags in this collection that appear in tagsets containing `tags'


 void refineSelection(const OpSet<Tag>& selection)
    OpSet<Tag> extraTags = collection.getCompanionTags(selection);

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

Definition at line 271 of file CardinalityStore.cc.

      OpSet<TAG> res;

      for (typename tagsets_t::const_iterator t = tagsets.begin();
                  t != tagsets.end(); t++)
            if (t->first.contains(ts))
                  res += t->first - ts;

      return res;

Generated by  Doxygen 1.6.0   Back to index