#include <vocabulary.h>
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 | |
Item * | item (int id) const |
Classes | |
struct | Item |
ept::debtags::Vocabulary::FacetIndex::FacetIndex | ( | ) | [inline] |
ept::debtags::Vocabulary::FacetIndex::FacetIndex | ( | const tagcoll::diskindex::MasterMMap & | master, | |
size_t | idx | |||
) | [inline] |
Item* ept::debtags::Vocabulary::FacetIndex::item | ( | int | id | ) | const [inline, protected] |
size_t ept::debtags::Vocabulary::FacetIndex::size | ( | ) | const [inline] |
Get the number of facets in the index.
size_t ept::debtags::Vocabulary::FacetIndex::offset | ( | int | id | ) | const [inline] |
Get the offset of the facet data in the vocabulary for this facet.
size_t ept::debtags::Vocabulary::FacetIndex::size | ( | int | id | ) | const [inline] |
Get the size of the facet data in the vocabulary for this facet.
int ept::debtags::Vocabulary::FacetIndex::firsttag | ( | int | id | ) | const [inline] |
Get the id of the first tag for this facet.
int ept::debtags::Vocabulary::FacetIndex::lasttag | ( | int | id | ) | const [inline] |
Get the id of the last tag for this facet.
const char* ept::debtags::Vocabulary::FacetIndex::name | ( | int | id | ) | const [inline] |
Get the name of this facet.
int ept::debtags::Vocabulary::FacetIndex::id | ( | const char * | name | ) | const |
Get the ID of the facet with this name.
int ept::debtags::Vocabulary::FacetIndex::id | ( | const std::string & | name | ) | const [inline] |