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

Loading...
Searching...
No Matches
SingleTermEnum.h
Go to the documentation of this file.
1
2// 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
23 LUCENE_CLASS(SingleTermEnum);
24
25 protected:
26 TermPtr singleTerm;
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
FilteredTermEnum.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::FilteredTermEnum
Abstract class for enumerating a subset of all terms.
Definition FilteredTermEnum.h:18
Lucene::SingleTermEnum
Subclass of FilteredTermEnum for enumerating a single term.
Definition SingleTermEnum.h:18
Lucene::SingleTermEnum::singleTerm
TermPtr singleTerm
Definition SingleTermEnum.h:26
Lucene::SingleTermEnum::endEnum
virtual bool endEnum()
Indicates the end of the enumeration has been reached.
Lucene::SingleTermEnum::~SingleTermEnum
virtual ~SingleTermEnum()
Lucene::SingleTermEnum::_endEnum
bool _endEnum
Definition SingleTermEnum.h:27
Lucene::SingleTermEnum::difference
virtual double difference()
Equality measure on the term.
Lucene::SingleTermEnum::SingleTermEnum
SingleTermEnum(const IndexReaderPtr &reader, const TermPtr &singleTerm)
Lucene::SingleTermEnum::termCompare
virtual bool termCompare(const TermPtr &term)
Equality compare on the term.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TermPtr
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net