ARB
|
#include <query_expr.h>
Public Member Functions | |
QueryExpr (query_operator aqo, QueryKeyPtr key, bool not_equal, const char *expression) | |
~QueryExpr () | |
void | append (QueryExpr *&tail) |
query_key_type | get_key_type () const |
QueryKey & | get_key () |
const QueryKey & | get_key () const |
void | negate () |
bool | matches (const QueryTarget &target, std::string &hit_reason) const |
GB_ERROR | getError (int count=0) const |
void | setError (GB_ERROR error_) const |
Definition at line 157 of file query_expr.h.
QueryExpr::QueryExpr | ( | query_operator | aqo, |
QueryKeyPtr | key, | ||
bool | not_equal, | ||
const char * | expression | ||
) |
Definition at line 16 of file query_expr.cxx.
|
inline |
Definition at line 191 of file query_expr.h.
void QueryExpr::append | ( | QueryExpr *& | tail | ) |
Definition at line 46 of file query_expr.cxx.
References append(), NULp, and qe_assert.
Referenced by GroupSearch::addQueryExpression(), append(), QUERY::DbQuery::buildQueryExpr(), and negate().
|
inline |
Definition at line 200 of file query_expr.h.
References QueryKey::get_type().
Referenced by perform_query_cb().
|
inline |
Definition at line 202 of file query_expr.h.
Referenced by perform_query_cb().
|
inline |
Definition at line 203 of file query_expr.h.
void QueryExpr::negate | ( | ) |
Definition at line 56 of file query_expr.cxx.
References AND, append(), QueryKey::negate(), negate(), OR, and qe_assert.
Referenced by negate(), perform_query_cb(), and GroupSearch::perform_search().
bool QueryExpr::matches | ( | const QueryTarget & | target, |
std::string & | hit_reason | ||
) | const |
Definition at line 277 of file query_expr.cxx.
References AND, GBS_global_string(), GBS_shorten_repeated_data(), QueryKey::get_name(), implicated, MAX_SHOWN_DATA_SIZE, QueryKey::next(), NULp, OR, qe_assert, QKEY_ALL, QKEY_ALL_REC, QKEY_ANY, QKEY_ANY_REC, QKEY_EXPLICIT, QueryKey::reset(), and string().
Referenced by perform_query_cb(), and GroupSearch::perform_search().
Definition at line 77 of file query_expr.cxx.
References GBS_global_string(), GBS_static_string(), getError(), and NULp.
Referenced by getError(), and perform_query_cb().
|
inline |
Definition at line 210 of file query_expr.h.
References qe_assert.
Referenced by QUERY::DbQuery::buildQueryExpr().