![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <queryparser.h>
Public Types | |
| enum | Kind { OrOp , AndOp , NotOp , Compare , Like , In } |
Public Attributes | |
| Kind | kind = Compare |
| std::shared_ptr< QueryNode > | left |
| std::shared_ptr< QueryNode > | right |
| QString | fieldName |
| QString | op |
| For Compare: "<", "<=", ... | |
| QVariant | literal |
| For Compare / Like. | |
| QList< QVariant > | inList |
| For In. | |
| QRegularExpression | likeRegex |
AST node — public only so consumers can inspect on test failures.
| QString openswmmvis::QueryNode::fieldName |
| QList<QVariant> openswmmvis::QueryNode::inList |
For In.
| std::shared_ptr<QueryNode> openswmmvis::QueryNode::left |
| QRegularExpression openswmmvis::QueryNode::likeRegex |
For Like: the LIKE pattern compiled to a regex, built once at parse time. It used to be rebuilt — and recompiled — on every row the predicate was evaluated against.
| QVariant openswmmvis::QueryNode::literal |
For Compare / Like.
| QString openswmmvis::QueryNode::op |
For Compare: "<", "<=", ...
| std::shared_ptr<QueryNode> openswmmvis::QueryNode::right |