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

TextQuery.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 #ifndef _TEXTQUERY_HPP
00013 #define _TEXTQUERY_HPP
00014 
00015 #include "Document.hpp"
00016 #include "TermQuery.hpp"
00017 
00018 
00022 class TextQuery : public TermQuery {
00023 public:
00024   TextQuery(const Document &doc) : d(doc) { 
00025     if (d.getID()) qid=d.getID(); 
00026     else qid=""; }
00027   virtual ~TextQuery() {}
00028 
00029   virtual void startTermIteration() const { d.startTermIteration();}
00030   virtual bool hasMore() const { return d.hasMore();}
00031   virtual const Term *nextTerm() const { return d.nextTerm();}
00032 protected:
00033   const Document &d;
00034 };
00035 
00036 #endif

Generated on Wed Nov 3 12:59:05 2004 for Lemur Toolkit by doxygen1.2.18