api/omqueryinternal.cc File Reference

#include <config.h>
#include "autoptr.h"
#include "omdebug.h"
#include "omqueryinternal.h"
#include "utils.h"
#include "serialise.h"
#include "serialise-double.h"
#include <xapian/error.h>
#include <xapian/termiterator.h>
#include <xapian/version.h>
#include "vectortermlist.h"
#include <vector>
#include <set>
#include <algorithm>
#include <math.h>
#include <limits.h>
#include <cfloat>

Include dependency graph for omqueryinternal.cc:

Go to the source code of this file.

Classes

struct  LessByTermpos
class  QUnserial
struct  SortPosName

Functions

static unsigned int get_min_subqs (Xapian::Query::Internal::op_t op)
static unsigned int get_max_subqs (Xapian::Query::Internal::op_t op)
static bool is_leaf (Xapian::Query::Internal::op_t op)
static Xapian::Query::Internalqint_from_vector (Xapian::Query::op op, const vector< Xapian::Query::Internal * > &vec, Xapian::termcount parameter=0)
static Xapian::Query::Internalqint_from_vector (Xapian::Query::op op, const vector< Xapian::Query::Internal * > &vec, Xapian::termcount parameter, double dbl_parameter)


Function Documentation

static unsigned int get_min_subqs ( Xapian::Query::Internal::op_t  op  )  [static]

Definition at line 50 of file omqueryinternal.cc.

References Assert, Xapian::Query::OP_AND, Xapian::Query::OP_AND_MAYBE, Xapian::Query::OP_AND_NOT, Xapian::Query::OP_ELITE_SET, Xapian::Query::OP_FILTER, Xapian::Query::Internal::OP_LEAF, Xapian::Query::OP_NEAR, Xapian::Query::OP_OR, Xapian::Query::OP_PHRASE, Xapian::Query::OP_SCALE_WEIGHT, Xapian::Query::OP_VALUE_GE, Xapian::Query::OP_VALUE_LE, Xapian::Query::OP_VALUE_RANGE, and Xapian::Query::OP_XOR.

Referenced by Xapian::Query::Internal::validate_query().

static unsigned int get_max_subqs ( Xapian::Query::Internal::op_t  op  )  [static]

Definition at line 77 of file omqueryinternal.cc.

References Assert, Xapian::Query::OP_AND, Xapian::Query::OP_AND_MAYBE, Xapian::Query::OP_AND_NOT, Xapian::Query::OP_ELITE_SET, Xapian::Query::OP_FILTER, Xapian::Query::Internal::OP_LEAF, Xapian::Query::OP_NEAR, Xapian::Query::OP_OR, Xapian::Query::OP_PHRASE, Xapian::Query::OP_SCALE_WEIGHT, Xapian::Query::OP_VALUE_GE, Xapian::Query::OP_VALUE_LE, Xapian::Query::OP_VALUE_RANGE, and Xapian::Query::OP_XOR.

Referenced by Xapian::Query::Internal::validate_query().

static bool is_leaf ( Xapian::Query::Internal::op_t  op  )  [inline, static]

Definition at line 105 of file omqueryinternal.cc.

References Xapian::Query::Internal::OP_LEAF.

Referenced by Xapian::Query::Internal::add_subquery(), Xapian::Query::Internal::collapse_subqs(), Xapian::Query::Internal::flatten_subqs(), Xapian::Query::Internal::get_description(), Xapian::Query::Internal::get_length(), SortPosName::operator()(), and Xapian::Query::Internal::validate_query().

static Xapian::Query::Internal* qint_from_vector ( Xapian::Query::op  op,
const vector< Xapian::Query::Internal * > &  vec,
Xapian::termcount  parameter = 0 
) [static]

Definition at line 425 of file omqueryinternal.cc.

References Xapian::Query::Internal::add_subquery(), and Xapian::Query::Internal::end_construction().

Referenced by QUnserial::readcompound().

static Xapian::Query::Internal* qint_from_vector ( Xapian::Query::op  op,
const vector< Xapian::Query::Internal * > &  vec,
Xapian::termcount  parameter,
double  dbl_parameter 
) [static]

Definition at line 440 of file omqueryinternal.cc.

References Xapian::Query::Internal::add_subquery(), Xapian::Query::Internal::end_construction(), and Xapian::Query::Internal::set_dbl_parameter().


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