QgsSQLStatement::NodeBinaryOperator class

Binary logical/arithmetical operator (AND, OR, =, +, ...)

Base classes

class Node
Abstract node class.

Constructors, destructors, conversion operators

NodeBinaryOperator(QgsSQLStatement::BinaryOperator op, QgsSQLStatement::Node* opLeft, QgsSQLStatement::Node* opRight)
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 leftAssociative() const -> bool
Is left associative ?
auto nodeType() const -> QgsSQLStatement::NodeType override
Abstract virtual that returns the type of this node.
auto op() const -> QgsSQLStatement::BinaryOperator
Operator.
auto opLeft() const -> QgsSQLStatement::Node*
Left operand.
auto opRight() const -> QgsSQLStatement::Node*
Right operand.
auto precedence() const -> int
Precedence.

Function documentation

void QgsSQLStatement::NodeBinaryOperator::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::NodeBinaryOperator::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::NodeBinaryOperator::dump() const override

Abstract virtual dump method.

Returns A statement which represents this node as string

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

Abstract virtual that returns the type of this node.

Returns The type of this node