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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PrefixTermEnum.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 PREFIXTERMENUM_H
8 #define PREFIXTERMENUM_H
9
10 #include "FilteredTermEnum.h"
11
12 namespace Lucene
13 {
18 class LPPAPI PrefixTermEnum : public FilteredTermEnum
19 {
20 public:
21 PrefixTermEnum(IndexReaderPtr reader, TermPtr prefix);
22 virtual ~PrefixTermEnum();
23
24 LUCENE_CLASS(PrefixTermEnum);
25
26 protected:
27 TermPtr prefix;
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 TermPtr getPrefixTerm();
38 };
39 }
40
41 #endif

clucene.sourceforge.net