QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Abstract node class. More...
#include <qgssqlstatement.h>
Public Member Functions | |
virtual | ~Node () |
virtual void | accept (Visitor &v) const =0 |
Support the visitor pattern. More... | |
virtual Node * | clone () const =0 |
Generate a clone of this node. More... | |
virtual QString | dump () const =0 |
Abstract virtual dump method. More... | |
virtual NodeType | nodeType () const =0 |
Abstract virtual that returns the type of this node. More... | |
Abstract node class.
Definition at line 194 of file qgssqlstatement.h.
|
inlinevirtual |
Definition at line 197 of file qgssqlstatement.h.
|
pure virtual |
Support the visitor pattern.
For any implementation this should look like
C++:
v.visit( *this );
Python:
v.visit( self)
v | A visitor that visits this node. |
Implemented in QgsSQLStatement::NodeSelect, QgsSQLStatement::NodeColumnSorted, QgsSQLStatement::NodeJoin, QgsSQLStatement::NodeTableDef, QgsSQLStatement::NodeCast, QgsSQLStatement::NodeSelectedColumn, QgsSQLStatement::NodeColumnRef, QgsSQLStatement::NodeLiteral, QgsSQLStatement::NodeFunction, QgsSQLStatement::NodeBetweenOperator, QgsSQLStatement::NodeInOperator, QgsSQLStatement::NodeBinaryOperator, and QgsSQLStatement::NodeUnaryOperator.
|
pure virtual |
Generate a clone 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.
Implemented in QgsSQLStatement::NodeSelect, QgsSQLStatement::NodeColumnSorted, QgsSQLStatement::NodeJoin, QgsSQLStatement::NodeTableDef, QgsSQLStatement::NodeCast, QgsSQLStatement::NodeSelectedColumn, QgsSQLStatement::NodeColumnRef, QgsSQLStatement::NodeLiteral, QgsSQLStatement::NodeFunction, QgsSQLStatement::NodeBetweenOperator, QgsSQLStatement::NodeInOperator, QgsSQLStatement::NodeBinaryOperator, and QgsSQLStatement::NodeUnaryOperator.
|
pure virtual |
Abstract virtual dump method.
Implemented in QgsSQLStatement::NodeSelect, QgsSQLStatement::NodeColumnSorted, QgsSQLStatement::NodeJoin, QgsSQLStatement::NodeTableDef, QgsSQLStatement::NodeCast, QgsSQLStatement::NodeSelectedColumn, QgsSQLStatement::NodeColumnRef, QgsSQLStatement::NodeLiteral, QgsSQLStatement::NodeFunction, QgsSQLStatement::NodeBetweenOperator, QgsSQLStatement::NodeInOperator, QgsSQLStatement::NodeBinaryOperator, and QgsSQLStatement::NodeUnaryOperator.
|
pure virtual |
Abstract virtual that returns the type of this node.
Implemented in QgsSQLStatement::NodeSelect, QgsSQLStatement::NodeColumnSorted, QgsSQLStatement::NodeJoin, QgsSQLStatement::NodeTableDef, QgsSQLStatement::NodeCast, QgsSQLStatement::NodeSelectedColumn, QgsSQLStatement::NodeColumnRef, QgsSQLStatement::NodeLiteral, QgsSQLStatement::NodeFunction, QgsSQLStatement::NodeBetweenOperator, QgsSQLStatement::NodeInOperator, QgsSQLStatement::NodeBinaryOperator, and QgsSQLStatement::NodeUnaryOperator.