xapian-core  2.0.0
deciderpostlist.h
Go to the documentation of this file.
1 
4 /* Copyright (C) 2017,2022 Olly Betts
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see
18  * <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef XAPIAN_INCLUDED_DECIDERPOSTLIST_H
22 #define XAPIAN_INCLUDED_DECIDERPOSTLIST_H
23 
24 #include "selectpostlist.h"
25 #include "valuestreamdocument.h"
26 
27 #include <xapian/document.h>
28 #include <xapian/matchdecider.h>
29 
30 namespace Xapian {
31 class MatchDecider;
32 }
33 
34 class EstimateOp;
35 
40 
43 
45  bool test_doc();
46 
47  public:
49  EstimateOp* estimate_op_,
50  const Xapian::MatchDecider* decider_,
51  ValueStreamDocument* vsdoc,
52  PostListTree* pltree_)
53  : SelectPostList(pl_, estimate_op_, pltree_),
54  decider(decider_),
55  doc(vsdoc)
56  { }
57 
58  std::string get_description() const;
59 };
60 
61 #endif // XAPIAN_INCLUDED_DECIDERPOSTLIST_H
PostList which applies a MatchDecider.
Xapian::Document doc
The document to test.
DeciderPostList(PostList *pl_, EstimateOp *estimate_op_, const Xapian::MatchDecider *decider_, ValueStreamDocument *vsdoc, PostListTree *pltree_)
const Xapian::MatchDecider * decider
The MatchDecider to apply.
std::string get_description() const
Return a string description of this object.
bool test_doc()
Test the current with the MatchDecider.
Class for estimating the total number of matching documents.
Definition: estimateop.h:64
Base class for classes which filter another PostList.
A document which gets its values from a ValueStreamManager.
Class representing a document.
Definition: document.h:64
Abstract base class for postlists.
Definition: postlist.h:40
Abstract base class for match deciders.
Definition: matchdecider.h:37
Class representing a document.
Abstract base class for match deciders.
The Xapian namespace contains public interfaces for the Xapian library.
Definition: compactor.cc:82
Base class for classes which filter another PostList.
A document which gets its values from a ValueStreamManager.