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

InvFPDocInfo.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 _INVFPDOCINFO_HPP
00014 #define _INVFPDOCINFO_HPP
00015 
00017 
00025 /*
00026  * NAME DATE - COMMENTS
00027  * tnt 03/2001 - created
00028  *
00029  *========================================================================*/
00030 
00031 #include "DocInfoList.hpp"
00032 #include "InvFPTypes.hpp"
00033 
00034 class InvFPDocInfo: public DocInfo {
00035 public: 
00036   friend class InvFPDocList;
00037 
00038   InvFPDocInfo() {};
00039   ~InvFPDocInfo() {}; 
00040   
00041   DOCID_T docID() { return id; };
00042   int termCount() { return count; };
00043   LOC_T* positions() {return pos; };
00044  
00045 private:
00046   DOCID_T id;    // id of this doc
00047   int count; // count of this term in this doc
00048   LOC_T* pos;  // list of positions in this doc (size is count)
00049 };
00050 
00051 #endif

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