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

InvFPDocList.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 _INVFPDOCLIST_HPP
00014 #define _INVFPDOCLIST_HPP
00015 
00016 /*
00017  * NAME DATE - COMMENTS
00018  * tnt 03/2001 - created
00019  * tnt 06/2002 - subclass from InvDocList
00020  *
00021  *========================================================================*/
00022 #include <cmath>
00023 #include "common_headers.hpp"
00024 #include "InvDocList.hpp"
00025 #include "InvFPDocInfo.hpp"
00026 #include "MemCache.hpp"
00027 
00028 extern "C" {
00029   #include <cstdio>
00030 }
00031 
00032 #define DEFAULT 9
00033 
00034 class InvFPDocList: public InvDocList {
00035 public:
00036   InvFPDocList();
00037 
00040   InvFPDocList(int id, int len);
00042   InvFPDocList(MemCache* mc, int id, int len);  
00043   InvFPDocList(MemCache* mc, int id, int len, int docid, int location);
00045   InvFPDocList(int id, int listlen, int* list, int fr, int* ldocid, int len);
00046   ~InvFPDocList();
00047 
00048   bool addTerm(int docid);
00049   bool addLocation(int docid, LOC_T location);
00050   bool append(InvDocList* tail);
00051 
00052   virtual DocInfo* nextEntry();
00053   virtual void nextEntry(InvFPDocInfo* info);
00054   virtual int termCTF();
00055 
00056 protected:
00059   virtual void deltaEncode();
00060 
00063   virtual void deltaDecode();
00064   private:
00065   InvFPDocInfo entry;
00066 };
00067 
00068 #endif

Generated on Tue Nov 25 11:26:44 2003 for Lemur Toolkit by doxygen1.2.18