libept  0.5.25
Classes | Public Member Functions | Protected Member Functions | List of all members
ept::debtags::Vocabulary::FacetIndex Class Reference

#include <vocabulary.h>

Inheritance diagram for ept::debtags::Vocabulary::FacetIndex:
Inheritance graph
[legend]
Collaboration diagram for ept::debtags::Vocabulary::FacetIndex:
Collaboration graph
[legend]

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. More...
 
size_t offset (int id) const
 Get the offset of the facet data in the vocabulary for this facet. More...
 
size_t size (int id) const
 Get the size of the facet data in the vocabulary for this facet. More...
 
int firsttag (int id) const
 Get the id of the first tag for this facet. More...
 
int lasttag (int id) const
 Get the id of the last tag for this facet. More...
 
const char * name (int id) const
 Get the name of this facet. More...
 
int id (const char *name) const
 Get the ID of the facet with this name. More...
 
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 char *  name) const
int ept::debtags::Vocabulary::FacetIndex::id ( const std::string &  name) const
inline

References id().

Referenced by id().

Item* ept::debtags::Vocabulary::FacetIndex::item ( int  id) const
inlineprotected
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 id(), 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 ( ) const
inline

Get the number of facets in the index.

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

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.


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