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

BasicPassage.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2002 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 #ifndef _BASICPASSAGE_HPP
00013 #define _BASICPASSAGE_HPP
00014 
00015 #include <iomanip>
00016 #include <vector>
00017 #include <string>
00018 #include "Passage.hpp"
00019 using std::vector;
00020 using std::string;
00021 
00022 
00028 class BasicPassage : public Passage {
00029 
00030 public:
00031   BasicPassage(const string &id) {
00032     psg = new passageVec;
00033     docID = id;
00034     score = -1;
00035     marked = 0;
00036   } 
00037  
00038   virtual void clear() ;
00039 
00040   virtual void addTerm(termCount term) ;
00041 
00042   virtual void addTerms(const passageVec pv) ;
00043 
00044   virtual const passageVec* getAsVector(void) const ;
00045 
00046   virtual int operator<(const Passage &b) const ;
00047 
00048 };
00049 
00050 #endif

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