matcher/msetcmp.cc File Reference

#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 []


Function Documentation

template<bool FORWARD_DID, bool CHECK_DID_ZERO>
bool msetcmp_by_did ( const Xapian::Internal::MSetItem a,
const Xapian::Internal::MSetItem b 
) [inline]

Definition at line 31 of file msetcmp.cc.

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

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

Definition at line 48 of file msetcmp.cc.

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

template<bool FORWARD_VALUE, bool FORWARD_DID>
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.

template<bool FORWARD_VALUE, bool FORWARD_DID>
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.

template<bool FORWARD_VALUE, bool FORWARD_DID>
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().


Variable Documentation

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().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.