Node class
Abstract node class.
Contents
- Reference
Derived classes
- class NodeBetweenOperator
- 'X BETWEEN y and z' operator
- class NodeBinaryOperator
- Binary logical/arithmetical operator (AND, OR, =, +, ...)
- class NodeCast
- CAST operator.
- class NodeColumnRef
- Reference to a column.
- class NodeColumnSorted
- Column in a ORDER BY.
- class NodeFunction
- Function with a name and arguments node.
- class NodeInOperator
- 'x IN (y, z)' operator
- class NodeJoin
- Join definition.
- class NodeLiteral
- Literal value (integer, integer64, double, string)
- class NodeSelect
- SELECT node.
- class NodeSelectedColumn
- Selected column.
- class NodeTableDef
- Table definition.
- class NodeUnaryOperator
- Unary logicial/arithmetical operator ( NOT, - )
Public functions
-
void accept(QgsSQLStatement::
Visitor& v) const pure virtual - Support the visitor pattern.
-
auto clone() const -> QgsSQLStatement::
Node* pure virtual - Generate a clone of this node.
- auto dump() const -> QString pure virtual
- Abstract virtual dump method.
-
auto nodeType() const -> QgsSQLStatement::
NodeType pure virtual - Abstract virtual that returns the type of this node.
Function documentation
void QgsSQLStatement:: Node:: accept(QgsSQLStatement:: Visitor& v) const pure virtual
Support the visitor pattern.
| Parameters | |
|---|---|
| v | A visitor that visits this node. |
For any implementation this should look like
C++:
v.visit( *this );
Python:
v.visit( self)
QgsSQLStatement:: Node* QgsSQLStatement:: Node:: clone() const pure virtual
Generate a clone of this node.
| Returns | a deep copy of this node. |
|---|
Make sure that the clone does not contain any information which is generated in prepare and context related. Ownership is transferred to the caller.
QString QgsSQLStatement:: Node:: dump() const pure virtual
Abstract virtual dump method.
| Returns | A statement which represents this node as string |
|---|
QgsSQLStatement:: NodeType QgsSQLStatement:: Node:: nodeType() const pure virtual
Abstract virtual that returns the type of this node.
| Returns | The type of this node |
|---|