xapian-core  2.0.0
Functions
msetcmp.cc File Reference

Result comparison functions. More...

#include <config.h>
#include "msetcmp.h"
#include "api/result.h"
#include "omassert.h"
+ Include dependency graph for msetcmp.cc:

Go to the source code of this file.

Functions

template<bool FORWARD_DID>
static bool msetcmp_by_docid_inline (const Result &a, const Result &b)
 
template<bool FORWARD_DID>
static bool msetcmp_by_docid (const Result &a, const Result &b)
 
template<bool FORWARD_DID>
static bool msetcmp_by_relevance (const Result &a, const Result &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value (const Result &a, const Result &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value_then_relevance (const Result &a, const Result &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_relevance_then_value (const Result &a, const Result &b)
 
MSetCmp get_msetcmp_function (Xapian::Enquire::Internal::sort_setting sort_by, bool sort_forward, bool sort_val_reverse)
 Select the appropriate msetcmp function. More...
 

Detailed Description

Result comparison functions.

Definition in file msetcmp.cc.

Function Documentation

◆ get_msetcmp_function()

MSetCmp get_msetcmp_function ( Xapian::Enquire::Internal::sort_setting  sort_by,
bool  sort_forward,
bool  sort_val_reverse 
)

◆ msetcmp_by_docid()

template<bool FORWARD_DID>
static bool msetcmp_by_docid ( const Result a,
const Result b 
)
static

Definition at line 47 of file msetcmp.cc.

◆ msetcmp_by_docid_inline()

template<bool FORWARD_DID>
static bool msetcmp_by_docid_inline ( const Result a,
const Result b 
)
inlinestatic

Definition at line 35 of file msetcmp.cc.

References Result::get_docid().

◆ msetcmp_by_relevance()

template<bool FORWARD_DID>
static bool msetcmp_by_relevance ( const Result a,
const Result b 
)
static

Definition at line 55 of file msetcmp.cc.

References Result::get_weight().

◆ msetcmp_by_relevance_then_value()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_relevance_then_value ( const Result a,
const Result b 
)
static

Definition at line 89 of file msetcmp.cc.

References Result::get_sort_key(), and Result::get_weight().

◆ msetcmp_by_value()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value ( const Result a,
const Result b 
)
static

Definition at line 65 of file msetcmp.cc.

References Result::get_sort_key().

◆ msetcmp_by_value_then_relevance()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value_then_relevance ( const Result a,
const Result b 
)
static

Definition at line 76 of file msetcmp.cc.

References Result::get_sort_key(), and Result::get_weight().