xapian-core  2.0.0
valuegepostlist.h
Go to the documentation of this file.
1 
4 /* Copyright 2007,2011 Olly Betts
5  * Copyright 2008 Lemur Consulting Ltd
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, see
19  * <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef XAPIAN_INCLUDED_VALUEGEPOSTLIST_H
23 #define XAPIAN_INCLUDED_VALUEGEPOSTLIST_H
24 
25 #include "valuerangepostlist.h"
26 
27 class EstimateOp;
28 
32 
34  void operator=(const ValueGePostList &);
35 
36  public:
38  EstimateOp* estimate_op_,
39  Xapian::doccount termfreq_,
40  Xapian::valueno slot_,
41  const std::string &begin_)
42  : ValueRangePostList(db_, estimate_op_, termfreq_,
43  slot_, begin_, std::string()) {}
44 
45  PostList * next(double w_min);
46 
47  PostList * skip_to(Xapian::docid, double w_min);
48 
49  PostList * check(Xapian::docid did, double w_min, bool &valid);
50 
51  std::string get_description() const;
52 };
53 
54 #endif /* XAPIAN_INCLUDED_VALUEGEPOSTLIST_H */
Class for estimating the total number of matching documents.
Definition: estimateop.h:64
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
ValueGePostList(const ValueGePostList &)
Disallow copying.
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
void operator=(const ValueGePostList &)
Disallow assignment.
ValueGePostList(const Xapian::Database::Internal *db_, EstimateOp *estimate_op_, Xapian::doccount termfreq_, Xapian::valueno slot_, const std::string &begin_)
std::string get_description() const
Return a string description of this object.
Virtual base class for Database internals.
Abstract base class for postlists.
Definition: postlist.h:40
PostList * next()
Advance the current position to the next document in the postlist.
Definition: postlist.h:168
unsigned valueno
The number for a value slot in a document.
Definition: types.h:90
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Definition: types.h:37
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Definition: types.h:51
Return document ids matching a range test on a specified doc value.