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
ReqExclScorer.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 REQEXCLSCORER_H
8 #define REQEXCLSCORER_H
9
10 #include "Scorer.h"
11
12 namespace Lucene
13 {
16 class ReqExclScorer : public Scorer
17 {
18 public:
22 ReqExclScorer(ScorerPtr reqScorer, DocIdSetIteratorPtr exclDisi);
23 virtual ~ReqExclScorer();
24
25 LUCENE_CLASS(ReqExclScorer);
26
27 protected:
28 ScorerPtr reqScorer;
29 DocIdSetIteratorPtr exclDisi;
30 int32_t doc;
31
32 public:
33 virtual int32_t nextDoc();
34 virtual int32_t docID();
35
39 virtual double score();
40
41 virtual int32_t advance(int32_t target);
42
43 protected:
54 int32_t toNonExcluded();
55 };
56 }
57
58 #endif

clucene.sourceforge.net