Additional options for query terms. This can be used to configure source lookup, traversal and access mode without relying on many positional overloads.
More...
#include <query_common.h>
|
|
Entity | entSrc = EntityBad |
| | Source entity to query from.
|
| |
|
Entity | entTrav = EntityBad |
| | Optional traversal relation used for source lookup.
|
| |
|
QueryTravKind | travKind = QueryTravKind::Self | QueryTravKind::Up |
| | Source traversal filter.
|
| |
|
uint8_t | travDepth = TravDepthUnlimited |
| | Maximum number of traversal steps. 0 means unlimited traversal depth (bounded internally, at most MAX_TRAV_DEPTH steps).
|
| |
|
QueryAccess | access = QueryAccess::None |
| | Access mode for the term. When None, typed query terms infer read/write access from template mutability.
|
| |
|
QueryMatchKind | matchKind = QueryMatchKind::Semantic |
| | Match semantics for terms with special meaning, such as Pair(Is, X).
|
| |
|
|
static constexpr uint8_t | TravDepthUnlimited = QueryInput::TravDepthUnlimited |
| | Traversal-depth value selecting the internally bounded unlimited mode.
|
| |
Additional options for query terms. This can be used to configure source lookup, traversal and access mode without relying on many positional overloads.
◆ direct()
Restricts the term to direct storage matches.
- Returns
- This options object.
◆ in()
Allows direct and inherited matches for the term.
- Returns
- This options object.
◆ read()
Requests read-only access to the term.
- Returns
- This options object.
◆ src()
Selects a fixed or variable source entity for the term.
- Parameters
-
| source | Source entity or variable identifier. |
- Returns
- This options object.
◆ trav()
Traverses the source and its relation targets without a user depth limit.
- Parameters
-
| relation | Relation to traverse. |
- Returns
- This options object.
◆ trav_child()
Checks only immediate entities targeting the source.
- Parameters
-
| relation | Relation to traverse in reverse. |
- Returns
- This options object.
◆ trav_depth()
Sets the maximum traversal distance.
- Parameters
-
| maxDepth | Maximum steps, or TravDepthUnlimited for the internal limit. |
- Returns
- This options object.
◆ trav_down()
Traverses entities targeting the source without a user depth limit.
- Parameters
-
| relation | Relation to traverse in reverse. |
- Returns
- This options object.
◆ trav_kind()
Replaces the traversal filter without changing its relation or depth.
- Parameters
-
| kind | Traversal locations to inspect. |
- Returns
- This options object.
◆ trav_parent()
Checks only the immediate relation target of the source.
- Parameters
-
| relation | Relation to traverse. |
- Returns
- This options object.
◆ trav_self_child()
Checks the source and immediate entities targeting it.
- Parameters
-
| relation | Relation to traverse in reverse. |
- Returns
- This options object.
◆ trav_self_down()
Checks the source and recursively traverses entities targeting it.
- Parameters
-
| relation | Relation to traverse in reverse. |
- Returns
- This options object.
◆ trav_self_parent()
Checks the source and its immediate relation target.
- Parameters
-
| relation | Relation to traverse. |
- Returns
- This options object.
◆ trav_up()
Traverses relation targets without checking the source itself.
- Parameters
-
| relation | Relation to traverse. |
- Returns
- This options object.
◆ write()
Requests mutable access to the term.
- Returns
- This options object.
The documentation for this struct was generated from the following file: