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

IndexWithCat.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.cs.cmu.edu/~lemur/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 #ifndef _INDEXWITHCAT_HPP
00014 #define _INDEXWITHCAT_HPP
00015 
00016 #include "Index.hpp"
00017 
00019 
00027 class IndexWithCat : public Index {
00028 public:
00029 
00031 
00032 
00034   virtual int category (const char * catIDStr)=0;
00035 
00037   virtual const char * category (int catID)=0;
00038 
00040 
00042 
00043 
00045   virtual int catCount()=0;
00046 
00048   virtual int docCountInCat(int catID)=0;
00049 
00051 
00052 
00054 
00055 
00056 
00057   virtual void startCatIDIteration(int docID)=0;
00058   virtual bool hasMoreCatID()=0;
00060 
00064   virtual int nextCatID()=0;
00065 
00066 
00067   virtual void startDocIDIteration(int catID)=0;
00068   virtual bool hasMoreDocID()=0;
00069 
00071 
00075   virtual int nextDocID()=0;
00076 
00078 
00079 };
00080 
00081 #endif /* _INDEXWITHCAT_HPP */
00082 
00083 

Generated at Fri Jul 26 18:22:26 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000