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-2014 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 public:
20  SingleTermEnum(const IndexReaderPtr& reader, const TermPtr& singleTerm);
21  virtual ~SingleTermEnum();
22 
24 
25 protected:
27  bool _endEnum;
28 
29 public:
30  virtual double difference();
31 
32 protected:
33  virtual bool endEnum();
34  virtual bool termCompare(const TermPtr& term);
35 };
36 
37 }
38 
39 #endif
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
TermPtr singleTerm
Definition: SingleTermEnum.h:23
Subclass of FilteredTermEnum for enumerating a single term.
Definition: SingleTermEnum.h:18
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
Abstract class for enumerating a subset of all terms.
Definition: FilteredTermEnum.h:18
bool _endEnum
Definition: SingleTermEnum.h:27

clucene.sourceforge.net