Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SingleTermEnum.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef SINGLETERMENUM_H
8 #define SINGLETERMENUM_H
9 
10 #include "FilteredTermEnum.h"
11 
12 namespace Lucene
13 {
18  class LPPAPI SingleTermEnum : public FilteredTermEnum
19  {
20  public:
21  SingleTermEnum(IndexReaderPtr reader, TermPtr singleTerm);
22  virtual ~SingleTermEnum();
23 
25 
26  protected:
28  bool _endEnum;
29 
30  public:
31  virtual double difference();
32 
33  protected:
34  virtual bool endEnum();
35  virtual bool termCompare(TermPtr term);
36  };
37 }
38 
39 #endif

clucene.sourceforge.net