xapian-core  2.0.0
msetcmp.h
Go to the documentation of this file.
1 
4 /* Copyright (C) 2006,2007,2011,2017 Olly Betts
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (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_MSETCMP_H
22 #define XAPIAN_INCLUDED_MSETCMP_H
23 
24 #include "api/enquireinternal.h"
25 
26 class Result;
27 
28 // typedef for Result comparison function.
29 typedef bool (* MSetCmp)(const Result&, const Result&);
30 
33  bool sort_forward,
34  bool sort_value_forward);
35 
36 #endif // XAPIAN_INCLUDED_MSETCMP_H
A result in an MSet.
Definition: result.h:30
Xapian::Enquire internals.
bool(* MSetCmp)(const Result &, const Result &)
Definition: msetcmp.h:29
MSetCmp get_msetcmp_function(Xapian::Enquire::Internal::sort_setting sort_by, bool sort_forward, bool sort_value_forward)
Select the appropriate msetcmp function.
Definition: msetcmp.cc:100