QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsExpression::NodeBinaryOperator Class Reference

#include <qgsexpression.h>

Inheritance diagram for QgsExpression::NodeBinaryOperator:
Inheritance graph
[legend]

Public Member Functions

 NodeBinaryOperator (BinaryOperator op, Node *opLeft, Node *opRight)
 ~NodeBinaryOperator ()
virtual void accept (Visitor &v) const override
virtual QString dump () const override
virtual QVariant eval (QgsExpression *parent, const QgsFeature *f) override
virtual bool needsGeometry () const override
virtual NodeType nodeType () const override
BinaryOperator op () const
NodeopLeft () const
NodeopRight () const
int precedence () const
virtual bool prepare (QgsExpression *parent, const QgsFields &fields) override
virtual QStringList referencedColumns () const override
- Public Member Functions inherited from QgsExpression::Node
virtual ~Node ()

Protected Member Functions

bool compare (double diff)
QDateTime computeDateTimeFromInterval (QDateTime d, QgsExpression::Interval *i)
double computeDouble (double x, double y)
int computeInt (int x, int y)

Protected Attributes

BinaryOperator mOp
NodemOpLeft
NodemOpRight

Detailed Description

Definition at line 476 of file qgsexpression.h.

Constructor & Destructor Documentation

QgsExpression::NodeBinaryOperator::NodeBinaryOperator ( BinaryOperator  op,
Node opLeft,
Node opRight 
)
inline

Definition at line 479 of file qgsexpression.h.

QgsExpression::NodeBinaryOperator::~NodeBinaryOperator ( )
inline

Definition at line 480 of file qgsexpression.h.

Member Function Documentation

virtual void QgsExpression::NodeBinaryOperator::accept ( Visitor v) const
inlineoverridevirtual

Implements QgsExpression::Node.

Definition at line 493 of file qgsexpression.h.

bool QgsExpression::NodeBinaryOperator::compare ( double  diff)
protected

Definition at line 2418 of file qgsexpression.cpp.

QDateTime QgsExpression::NodeBinaryOperator::computeDateTimeFromInterval ( QDateTime  d,
QgsExpression::Interval i 
)
protected

Definition at line 2445 of file qgsexpression.cpp.

double QgsExpression::NodeBinaryOperator::computeDouble ( double  x,
double  y 
)
protected

Definition at line 2455 of file qgsexpression.cpp.

int QgsExpression::NodeBinaryOperator::computeInt ( int  x,
int  y 
)
protected

Definition at line 2432 of file qgsexpression.cpp.

QString QgsExpression::NodeBinaryOperator::dump ( ) const
overridevirtual

Implements QgsExpression::Node.

Definition at line 2522 of file qgsexpression.cpp.

QVariant QgsExpression::NodeBinaryOperator::eval ( QgsExpression parent,
const QgsFeature f 
)
overridevirtual

Implements QgsExpression::Node.

Definition at line 2226 of file qgsexpression.cpp.

virtual bool QgsExpression::NodeBinaryOperator::needsGeometry ( ) const
inlineoverridevirtual

Implements QgsExpression::Node.

Definition at line 492 of file qgsexpression.h.

virtual NodeType QgsExpression::NodeBinaryOperator::nodeType ( ) const
inlineoverridevirtual

Implements QgsExpression::Node.

Definition at line 486 of file qgsexpression.h.

BinaryOperator QgsExpression::NodeBinaryOperator::op ( ) const
inline

Definition at line 482 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::opLeft ( ) const
inline

Definition at line 483 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::opRight ( ) const
inline

Definition at line 484 of file qgsexpression.h.

int QgsExpression::NodeBinaryOperator::precedence ( ) const

Definition at line 2476 of file qgsexpression.cpp.

bool QgsExpression::NodeBinaryOperator::prepare ( QgsExpression parent,
const QgsFields fields 
)
overridevirtual

Implements QgsExpression::Node.

Definition at line 2469 of file qgsexpression.cpp.

virtual QStringList QgsExpression::NodeBinaryOperator::referencedColumns ( ) const
inlineoverridevirtual

Implements QgsExpression::Node.

Definition at line 491 of file qgsexpression.h.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected

Definition at line 503 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected

Definition at line 504 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

Definition at line 505 of file qgsexpression.h.


The documentation for this class was generated from the following files: