#include <IndexWithCat.hpp>
Inheritance diagram for IndexWithCat:
Public Methods | |
Extra spelling and index conversion that are not in Index | |
virtual int | category (const string &catIDStr) const=0 |
Convert a spelling to catID. | |
virtual const string | category (int catID) const=0 |
Convert a catID to its spelling. | |
Extra summary counts not in Index | |
virtual int | catCount () const=0 |
Total counts of categories. | |
virtual int | docCountInCat (int catID) const=0 |
Total counts of documents in a category. | |
Category Index entry access (Cat X Doc) | |
virtual void | startCatIDIteration (int docID) const=0 |
virtual bool | hasMoreCatID () const=0 |
virtual int | nextCatID () const=0 |
Iteration over all category ids that a doc belongs to. | |
virtual void | startDocIDIteration (int catID) const=0 |
virtual bool | hasMoreDocID () const=0 |
virtual int | nextDocID () const=0 |
Iteration over all doc ids that belong to a given category. |
IndexWithCat extends Index with document category information. In addition to what is supported by Index, it adds support of looking up all categories for a document and looking up all documents for a category. It is typically used by a text categorization application.
|
Total counts of categories.
Implemented in BasicIndexWithCat. |
|
Convert a catID to its spelling.
Implemented in BasicIndexWithCat. |
|
Convert a spelling to catID.
Implemented in BasicIndexWithCat. |
|
Total counts of documents in a category.
Implemented in BasicIndexWithCat. |
|
Implemented in BasicIndexWithCat. |
|
Implemented in BasicIndexWithCat. |
|
Iteration over all category ids that a doc belongs to. startCatIDIteration, hasMoreCatID, and nextCatID go together to support iteration over category ids that a document has. Implemented in BasicIndexWithCat. |
|
Iteration over all doc ids that belong to a given category. startDocIDIteration, hasMoreDocID, and nextDocID go together to support iteration over all doc ids in a given category Implemented in BasicIndexWithCat. |
|
Implemented in BasicIndexWithCat. |
|
Implemented in BasicIndexWithCat. |