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

#include <vocabulary.h>

List of all members.

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

Classes

struct  Item


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

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

References size().

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

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::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 ( 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.

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().

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

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(), id(), and ept::debtags::Vocabulary::tagByName().

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

References id().


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

Generated on Sat Jul 26 13:20:09 2008 for libept by  doxygen 1.5.6