xapian-core  1.4.26
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, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef XAPIAN_INCLUDED_VALUEGEPOSTLIST_H
23 #define XAPIAN_INCLUDED_VALUEGEPOSTLIST_H
24 
25 #include "valuerangepostlist.h"
26 
30 
32  void operator=(const ValueGePostList &);
33 
34  public:
36  Xapian::valueno slot_,
37  const std::string &begin_)
38  : ValueRangePostList(db_, slot_, begin_, std::string()) {}
39 
40  PostList * next(double w_min);
41 
42  PostList * skip_to(Xapian::docid, double w_min);
43 
44  PostList * check(Xapian::docid did, double w_min, bool &valid);
45 
46  std::string get_description() const;
47 };
48 
49 #endif /* XAPIAN_INCLUDED_VALUEGEPOSTLIST_H */
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
Abstract base class for postlists.
Definition: postlist.h:37
Base class for databases.
Definition: database.h:57
STL namespace.
ValueGePostList(const Xapian::Database::Internal *db_, Xapian::valueno slot_, const std::string &begin_)
Internal * next()
Advance the current position to the next document in the postlist.
Definition: postlist.h:194
ValueGePostList(const ValueGePostList &)
Disallow copying.
unsigned valueno
The number for a value slot in a document.
Definition: types.h:108
void operator=(const ValueGePostList &)
Disallow assignment.
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
std::string get_description() const
Return a string description of this object.
Return document ids matching a range test on a specified doc value.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Definition: types.h:52