#include <config.h>
#include "msetcmp.h"
Include dependency graph for msetcmp.cc:
Go to the source code of this file.
Functions | |
template<bool FORWARD_DID, bool CHECK_DID_ZERO> | |
bool | msetcmp_by_did (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b) |
template<bool FORWARD_DID> | |
bool | msetcmp_by_relevance (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b) |
template<bool FORWARD_VALUE, bool FORWARD_DID> | |
bool | msetcmp_by_value (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b) |
template<bool FORWARD_VALUE, bool FORWARD_DID> | |
bool | msetcmp_by_value_then_relevance (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b) |
template<bool FORWARD_VALUE, bool FORWARD_DID> | |
bool | msetcmp_by_relevance_then_value (const Xapian::Internal::MSetItem &a, const Xapian::Internal::MSetItem &b) |
mset_cmp | get_msetcmp_function (Xapian::Enquire::Internal::sort_setting sort_by, bool sort_forward, bool sort_value_forward) |
Select the appropriate msetcmp function. | |
Variables | |
static mset_cmp | mset_cmp_table [] |
bool msetcmp_by_did | ( | const Xapian::Internal::MSetItem & | a, | |
const Xapian::Internal::MSetItem & | b | |||
) | [inline] |
bool msetcmp_by_relevance | ( | const Xapian::Internal::MSetItem & | a, | |
const Xapian::Internal::MSetItem & | b | |||
) | [inline] |
bool msetcmp_by_value | ( | const Xapian::Internal::MSetItem & | a, | |
const Xapian::Internal::MSetItem & | b | |||
) | [inline] |
Definition at line 58 of file msetcmp.cc.
References Xapian::Internal::MSetItem::did, and Xapian::Internal::MSetItem::sort_key.
bool msetcmp_by_value_then_relevance | ( | const Xapian::Internal::MSetItem & | a, | |
const Xapian::Internal::MSetItem & | b | |||
) | [inline] |
Definition at line 73 of file msetcmp.cc.
References Xapian::Internal::MSetItem::did, Xapian::Internal::MSetItem::sort_key, and Xapian::Internal::MSetItem::wt.
bool msetcmp_by_relevance_then_value | ( | const Xapian::Internal::MSetItem & | a, | |
const Xapian::Internal::MSetItem & | b | |||
) | [inline] |
Definition at line 90 of file msetcmp.cc.
References Xapian::Internal::MSetItem::did, Xapian::Internal::MSetItem::sort_key, and Xapian::Internal::MSetItem::wt.
mset_cmp get_msetcmp_function | ( | Xapian::Enquire::Internal::sort_setting | sort_by, | |
bool | sort_forward, | |||
bool | sort_value_forward | |||
) |
Select the appropriate msetcmp function.
Definition at line 128 of file msetcmp.cc.
References mset_cmp_table.
Referenced by MultiMatch::get_mset().
mset_cmp mset_cmp_table[] [static] |
Initial value:
{ msetcmp_by_relevance<false>, msetcmp_by_relevance<false>, msetcmp_by_relevance<true>, msetcmp_by_relevance<true>, msetcmp_by_value<false, false>, msetcmp_by_value<true, false>, msetcmp_by_value<false, true>, msetcmp_by_value<true, true>, msetcmp_by_value_then_relevance<false, false>, msetcmp_by_value_then_relevance<true, false>, msetcmp_by_value_then_relevance<false, true>, msetcmp_by_value_then_relevance<true, true>, msetcmp_by_relevance_then_value<true, true>, msetcmp_by_relevance_then_value<false, true>, msetcmp_by_relevance_then_value<true, false>, msetcmp_by_relevance_then_value<false, false> }
Definition at line 105 of file msetcmp.cc.
Referenced by get_msetcmp_function().