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
FilteredDocIdSetIterator.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 FILTEREDDOCIDSETITERATOR_H
8 #define FILTEREDDOCIDSETITERATOR_H
9
10 #include "DocIdSetIterator.h"
11
12 namespace Lucene
13 {
16 class LPPAPI FilteredDocIdSetIterator : public DocIdSetIterator
17 {
18 public:
20 FilteredDocIdSetIterator(DocIdSetIteratorPtr innerIter);
21 virtual ~FilteredDocIdSetIterator();
22
23 LUCENE_CLASS(FilteredDocIdSetIterator);
24
25 protected:
26 DocIdSetIteratorPtr innerIter;
27 int32_t doc;
28
29 public:
30 virtual int32_t docID();
31 virtual int32_t nextDoc();
32 virtual int32_t advance(int32_t target);
33
34 protected:
39 virtual bool match(int32_t docid) = 0;
40 };
41 }
42
43 #endif

clucene.sourceforge.net