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

InvFPTerm.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 #ifndef _INVFPTERM_HPP
00013 #define _INVFPTERM_HPP
00014 
00015 #include "TermInfoList.hpp"
00016 #include "InvFPTypes.hpp"
00017 
00019 
00022 class InvFPTerm: public TermInfo {
00023 public:
00024   friend class InvFPTermList;
00025 
00026   InvFPTerm() { freq=1;};
00027   ~InvFPTerm() {};
00028 
00029   const char* spelling() { return word; };
00030   void spelling(TERM_T term) { word = term; };
00031   int strLength() { return strlen; };
00032   void strLength(int len) { strlen = len; };
00033   int count() {return freq; };
00034   TERMID_T id() { return tid; };
00035   LOC_T position() { return loc; };
00036 //  LOC_T* positions() { return loclist; };
00037   void position(LOC_T pos) { loc = pos; };
00038 
00039 private:
00040   LOC_T loc;  // where this term (currently) occurs in the document
00041  // LOC_T* loclist; // list of all places term occurs in the document                  
00042   TERMID_T tid;
00043   int strlen;
00044   TERM_T word; 
00045   int freq; // number of times this term occurs in this document
00046 };
00047 
00048 #endif

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