xapian-core  1.4.21
Functions
msetcmp.cc File Reference

MSetItem comparison functions. More...

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

Go to the source code of this file.

Functions

template<bool FORWARD_DID, bool CHECK_DID_ZERO>
static bool msetcmp_by_did (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b)
 
template<bool FORWARD_DID>
static bool msetcmp_by_relevance (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value_then_relevance (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b)
 
template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_relevance_then_value (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &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

MSetItem 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_did()

template<bool FORWARD_DID, bool CHECK_DID_ZERO>
static bool msetcmp_by_did ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
)
inlinestatic

Definition at line 35 of file msetcmp.cc.

References Xapian::Internal::MSetItem::did.

◆ msetcmp_by_relevance()

template<bool FORWARD_DID>
static bool msetcmp_by_relevance ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
)
static

Definition at line 53 of file msetcmp.cc.

References Xapian::Internal::MSetItem::wt.

◆ msetcmp_by_relevance_then_value()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_relevance_then_value ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
)
static

◆ msetcmp_by_value()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
)
static

◆ msetcmp_by_value_then_relevance()

template<bool FORWARD_VALUE, bool FORWARD_DID>
static bool msetcmp_by_value_then_relevance ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
)
static