#include <IndexWithCat.hpp>
Inheritance diagram for IndexWithCat:

Public Methods | |
Extra spelling and index conversion that are not in Index | |
| virtual int | category (const char *catIDStr)=0 |
| Convert a spelling to catID. | |
| virtual const char * | category (int catID)=0 |
| Convert a catID to its spelling. | |
Extra summary counts not in Index | |
| virtual int | catCount ()=0 |
| Total counts of categories. | |
| virtual int | docCountInCat (int catID)=0 |
| Total counts of documents in a category. | |
Category Index entry access (Cat X Doc) | |
| virtual void | startCatIDIteration (int docID)=0 |
| virtual bool | hasMoreCatID ()=0 |
| virtual int | nextCatID ()=0 |
| Iteration over all category ids that a doc belongs to. | |
| virtual void | startDocIDIteration (int catID)=0 |
| virtual bool | hasMoreDocID ()=0 |
| virtual int | nextDocID ()=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. |
1.2.16