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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FilteredTermEnum.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 FILTEREDTERMENUM_H
8 #define FILTEREDTERMENUM_H
9 
10 #include "TermEnum.h"
11 
12 namespace Lucene
13 {
18  class LPPAPI FilteredTermEnum : public TermEnum
19  {
20  public:
21  virtual ~FilteredTermEnum();
23 
24  protected:
26  TermPtr currentTerm;
27 
30 
31  public:
33  virtual double difference() = 0;
34 
37  virtual int32_t docFreq();
38 
40  virtual bool next();
41 
44  virtual TermPtr term();
45 
47  virtual void close();
48 
49  protected:
51  virtual bool termCompare(TermPtr term) = 0;
52 
54  virtual bool endEnum() = 0;
55 
58  virtual void setEnum(TermEnumPtr actualEnum);
59  };
60 }
61 
62 #endif

clucene.sourceforge.net