QgsSQLStatement::NodeBetweenOperator class

'X BETWEEN y and z' operator

Base classes

class Node
Abstract node class.

Constructors, destructors, conversion operators

NodeBetweenOperator(QgsSQLStatement::Node* node, QgsSQLStatement::Node* minVal, QgsSQLStatement::Node* maxVal, bool notBetween = false)
Constructor.

Public functions

void accept(QgsSQLStatement::Visitor& v) const override
Support the visitor pattern.
auto clone() const -> QgsSQLStatement::Node* override
Generate a clone of this node.
auto dump() const -> QString override
Abstract virtual dump method.
auto isNotBetween() const -> bool
Whether this is a NOT BETWEEN operator.
auto maxVal() const -> QgsSQLStatement::Node*
Maximum bound.
auto minVal() const -> QgsSQLStatement::Node*
Minimum bound.
auto node() const -> QgsSQLStatement::Node*
Variable at the left of BETWEEN.
auto nodeType() const -> QgsSQLStatement::NodeType override
Abstract virtual that returns the type of this node.

Function documentation

void QgsSQLStatement::NodeBetweenOperator::accept(QgsSQLStatement::Visitor& v) const override

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::NodeBetweenOperator::clone() const override

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::NodeBetweenOperator::dump() const override

Abstract virtual dump method.

Returns A statement which represents this node as string

QgsSQLStatement::NodeType QgsSQLStatement::NodeBetweenOperator::nodeType() const override

Abstract virtual that returns the type of this node.

Returns The type of this node