#include <vocabulary.h>
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 | |
Item * | item (int id) const |
ept::debtags::Vocabulary::TagIndex::TagIndex | ( | ) | [inline] |
ept::debtags::Vocabulary::TagIndex::TagIndex | ( | const tagcoll::diskindex::MasterMMap & | master, | |
size_t | idx | |||
) | [inline] |
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] |
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] |
const char* ept::debtags::Vocabulary::TagIndex::name | ( | int | id | ) | const [inline] |
Get the name of this tag.
References item(), and ept::debtags::Vocabulary::TagIndex::Item::name.
Referenced by ept::debtags::Vocabulary::tagName(), and ept::debtags::Vocabulary::tagShortName().
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.