Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IndexWithCat Class Reference

An abstract interface for access to an index with category information. More...

#include <IndexWithCat.hpp>

Inheritance diagram for IndexWithCat:

Index BasicIndexWithCat List of all members.

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. More...

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. More...


Detailed Description

An abstract interface for access to an index with category information.

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.


Member Function Documentation

int IndexWithCat::catCount ( ) [pure virtual]
 

Total counts of categories.

Reimplemented in BasicIndexWithCat.

const char * IndexWithCat::category ( int catID ) [pure virtual]
 

Convert a catID to its spelling.

Reimplemented in BasicIndexWithCat.

int IndexWithCat::category ( const char * catIDStr ) [pure virtual]
 

Convert a spelling to catID.

Reimplemented in BasicIndexWithCat.

int IndexWithCat::docCountInCat ( int catID ) [pure virtual]
 

Total counts of documents in a category.

Reimplemented in BasicIndexWithCat.

bool IndexWithCat::hasMoreCatID ( ) [pure virtual]
 

Reimplemented in BasicIndexWithCat.

bool IndexWithCat::hasMoreDocID ( ) [pure virtual]
 

Reimplemented in BasicIndexWithCat.

int IndexWithCat::nextCatID ( ) [pure virtual]
 

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.

Reimplemented in BasicIndexWithCat.

int IndexWithCat::nextDocID ( ) [pure virtual]
 

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

Reimplemented in BasicIndexWithCat.

void IndexWithCat::startCatIDIteration ( int docID ) [pure virtual]
 

Reimplemented in BasicIndexWithCat.

void IndexWithCat::startDocIDIteration ( int catID ) [pure virtual]
 

Reimplemented in BasicIndexWithCat.


The documentation for this class was generated from the following file:
Generated at Fri Jul 26 18:22:49 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000