ept::debtags::Vocabulary::FacetIndex Class Reference

#include <vocabulary.h>

List of all members.

Classes

struct  Item

Public Member Functions

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

Protected Member Functions

Itemitem (int id) const

Constructor & Destructor Documentation

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

Member Function Documentation

int ept::debtags::Vocabulary::FacetIndex::firsttag ( int  id  )  const [inline]

Get the id of the first tag for this facet.

References ept::debtags::Vocabulary::FacetIndex::Item::firsttag, and item().

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

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

References id().

Referenced by id().

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

Get the ID of the facet with this name.

References item(), and size().

Referenced by ept::debtags::Vocabulary::facetByName(), ept::debtags::Vocabulary::hasFacet(), and ept::debtags::Vocabulary::tags().

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

References size().

Referenced by firsttag(), id(), lasttag(), name(), offset(), and size().

int ept::debtags::Vocabulary::FacetIndex::lasttag ( int  id  )  const [inline]

Get the id of the last tag for this facet.

References item(), and ept::debtags::Vocabulary::FacetIndex::Item::lasttag.

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

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

Get the name of this facet.

References item(), and ept::debtags::Vocabulary::FacetIndex::Item::name.

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

size_t ept::debtags::Vocabulary::FacetIndex::offset ( int  id  )  const [inline]

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

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

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

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

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

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

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

Get the number of facets in the index.

Referenced by ept::debtags::Vocabulary::facetData(), ept::debtags::Vocabulary::facets(), id(), and item().


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

Generated on Tue Dec 15 19:16:52 2009 for libept by  doxygen 1.6.1