#include "common/query.hpp"
template<class RES>
class lumiera::Query< RES >::Builder
Helper for establishing, reworking and remolding queries.
Definition at line 477 of file query.hpp.
|
string | asKey () const |
|
string | extractID (Symbol predicate) const |
| extract an ID term defined as (single) parameter for the given predicate. More...
|
|
Builder & | fromText (string queryPredicates) |
|
| operator Query< RES > () |
| when done with defining or reworking the query, the result may be retrieved by type conversion
|
|
Builder & | prependConditions (string additionalQueryPredicates) |
|
Builder & | removeTerm (Symbol termPredicate) |
| remove the first term from this query definition, which matches the given predicate symbol More...
|
|
Builder & | withConditions (string additionalQueryPredicates) |
|
|
| Builder (QueryID kind, string baseDef="") |
|
|
string | predicateForm_ |
|
QueryID | typeID_ |
|
◆ asKey()
- Returns
- a string representation usable for hashing
- Note
- includes the type parameter of the underlying query
Definition at line 503 of file query.hpp.
◆ extractID()
string extractID |
( |
Symbol |
predicate | ) |
const |
|
inline |
extract an ID term defined as (single) parameter for the given predicate.
E.g. when using the query "foo(a), bar(b)", extractID
("bar") returns "b"
- Parameters
-
predicate | symbol of the predicate to investigate |
- Warning
- preliminary implementation
Definition at line 517 of file query.hpp.
◆ removeTerm()
remove the first term from this query definition, which matches the given predicate symbol
- Warning
- preliminary implementation
Definition at line 528 of file query.hpp.
The documentation for this class was generated from the following file: