Main Page   Namespace List   Class Hierarchy   Alphabetical List   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.lemurproject.org/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 string &catIDStr) const=0;
00035 
00037   virtual const string category (int catID) const=0;
00038 
00040 
00042 
00043 
00045   virtual int catCount() const=0;
00046 
00048   virtual int docCountInCat(int catID) const=0;
00049 
00051 
00052 
00054 
00055 
00056 
00057   virtual void startCatIDIteration(int docID) const=0;
00058   virtual bool hasMoreCatID() const=0;
00060 
00064   virtual int nextCatID() const=0;
00065 
00066 
00067   virtual void startDocIDIteration(int catID) const=0;
00068   virtual bool hasMoreDocID() const=0;
00069 
00071 
00075   virtual int nextDocID() const=0;
00076 
00078 
00079 };
00080 
00081 #endif /* _INDEXWITHCAT_HPP */
00082 
00083 

Generated on Wed Nov 3 12:58:57 2004 for Lemur Toolkit by doxygen1.2.18