Classes | Public Member Functions | Protected Member Functions

ept::debtags::Vocabulary::TagIndex Class Reference

#include <vocabulary.h>

List of all members.

Classes

struct  Item

Public Member Functions

 TagIndex ()
 TagIndex (const tagcoll::diskindex::MasterMMap &master, size_t idx)
size_t size () const
 Get the number of tags in the index.
size_t offset (int id) const
 Get the offset of the facet data in the vocabulary for this tag.
size_t size (int id) const
 Get the size of the facet data in the vocabulary for this tag.
int facet (int id) const
 Get the id of the facet for this tag.
const char * name (int id) const
 Get the name of this tag.
int id (const char *name) const
 Get the ID of the tag with this name.
int id (const std::string &name) const

Protected Member Functions

Itemitem (int id) const

Constructor & Destructor Documentation

ept::debtags::Vocabulary::TagIndex::TagIndex (  )  [inline]
ept::debtags::Vocabulary::TagIndex::TagIndex ( const tagcoll::diskindex::MasterMMap &  master,
size_t  idx 
) [inline]

Member Function Documentation

int ept::debtags::Vocabulary::TagIndex::facet ( int  id  )  const [inline]

Get the id of the facet for this tag.

References ept::debtags::Vocabulary::TagIndex::Item::facet, and item().

Referenced by ept::debtags::Vocabulary::facetByTag().

int ept::debtags::Vocabulary::TagIndex::id ( const std::string &  name  )  const [inline]

References id().

Referenced by id().

int ept::debtags::Vocabulary::TagIndex::id ( const char *  name  )  const

Get the ID of the tag with this name.

References item(), size(), and ept::debtags::tagcmp().

Referenced by ept::debtags::Vocabulary::hasTag(), and ept::debtags::Vocabulary::tagByName().

Item* ept::debtags::Vocabulary::TagIndex::item ( int  id  )  const [inline, protected]

References size().

Referenced by facet(), id(), name(), offset(), and size().

const char* ept::debtags::Vocabulary::TagIndex::name ( int  id  )  const [inline]
size_t ept::debtags::Vocabulary::TagIndex::offset ( int  id  )  const [inline]

Get the offset of the facet data in the vocabulary for this tag.

References item(), and ept::debtags::Vocabulary::TagIndex::Item::offset.

Referenced by ept::debtags::Vocabulary::tagData().

size_t ept::debtags::Vocabulary::TagIndex::size (  )  const [inline]

Get the number of tags in the index.

Referenced by id(), item(), ept::debtags::Vocabulary::tagData(), and ept::debtags::Vocabulary::tags().

size_t ept::debtags::Vocabulary::TagIndex::size ( int  id  )  const [inline]

Get the size of the facet data in the vocabulary for this tag.

References item(), and ept::debtags::Vocabulary::TagIndex::Item::size.


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