![]() |
Lumiera 0.pre.04
»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 61 of file query-text.hpp.
Public Member Functions | |
| QueryText () | |
| QueryText (string const &syntacticRepr) | |
| operator string () const | |
| auto | operator<=> (QueryText const &) const =default |
| bool | empty () const |
| bool | hasAtom (string const &predSymbol) |
| uint | degree_of_constriction () const |
| synthetic total order to classify query definitions. | |
Friends | |
| HashVal | hash_value (QueryText const &entry) |
| support using queries in hashtables. | |
Private Member Functions | |
| string | normalise (string const &rawDefinition) |
| Parse, verify and normalise the raw query definition. | |
Private Attributes | |
| string | definition_ |
|
inline |
Definition at line 67 of file query-text.hpp.
|
inline |
Definition at line 69 of file query-text.hpp.
|
inline |
Definition at line 75 of file query-text.hpp.
References QueryText::definition_.
|
default |
|
inline |
Definition at line 83 of file query-text.hpp.
References QueryText::definition_.
|
inline |
Definition at line 89 of file query-text.hpp.
References util::contains(), and QueryText::definition_.
Referenced by QueryText_test::build_from_string().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
synthetic total order to classify query definitions.
Queries with more specific conditions should yield larger values.
Definition at line 102 of file query-text.hpp.
References lib::query::countPred(), and QueryText::definition_.
Referenced by QueryKey::degree().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Parse, verify and normalise the raw query definition.
Definition at line 37 of file query-text.cpp.
|
private |
Definition at line 63 of file query-text.hpp.
Referenced by QueryText::degree_of_constriction(), QueryText::empty(), QueryText::hasAtom(), and QueryText::operator string().
support using queries in hashtables.
Definition at line 52 of file query-text.cpp.
Collaboration diagram for QueryText: