Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/query-text.hpp"
Syntactical query representation.
Used as a backbone to allow for generic queries and to enable programmatically rebuilding and remolding of queries.
Definition at line 70 of file query-text.hpp.
Public Member Functions | |
QueryText (string const &syntacticRepr) | |
uint | degree_of_constriction () const |
synthetic total order to classify query definitions. More... | |
bool | empty () const |
bool | hasAtom (string const &predSymbol) |
operator string () const | |
Friends | |
HashVal | hash_value (QueryText const &entry) |
support using queries in hashtables. More... | |
bool | operator< (QueryText const &q1, QueryText const &q2) |
bool | operator== (QueryText const &q1, QueryText const &q2) |
Private Member Functions | |
string | normalise (string const &rawDefinition) |
Parse, verify and normalise the raw query definition. More... | |
Private Attributes | |
string | definition_ |
|
inline |
synthetic total order to classify query definitions.
Queries with more specific conditions should yield larger values.
Definition at line 110 of file query-text.hpp.
References steam::mobject::session::query::anonymous_namespace{fake-configrules.cpp}::entry(), QueryText::hash_value, and QueryText::normalise().
Referenced by QueryKey::QueryKey().
|
private |
Parse, verify and normalise the raw query definition.
Definition at line 46 of file query-text.cpp.
Referenced by QueryText::degree_of_constriction().
support using queries in hashtables.
Definition at line 61 of file query-text.cpp.
Referenced by QueryText::degree_of_constriction().