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

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

Get the tags attached to an item.

item The item to query
The set of tags, or an empty set if the item has no tags or it does not exist.

Implements Tagcoll::Collection< ITEM, TAG >.

Definition at line 226 of file CardinalityStore.cc.

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

Generated by  Doxygen 1.6.0   Back to index