QGIS API Documentation  2.11.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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
 
bool leftAssociative () const
 
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 526 of file qgsexpression.h.

Constructor & Destructor Documentation

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

Definition at line 529 of file qgsexpression.h.

QgsExpression::NodeBinaryOperator::~NodeBinaryOperator ( )
inline

Definition at line 530 of file qgsexpression.h.

Member Function Documentation

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

Implements QgsExpression::Node.

Definition at line 543 of file qgsexpression.h.

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

Definition at line 2473 of file qgsexpression.cpp.

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

Definition at line 2500 of file qgsexpression.cpp.

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

Definition at line 2510 of file qgsexpression.cpp.

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

Definition at line 2487 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2613 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2281 of file qgsexpression.cpp.

bool QgsExpression::NodeBinaryOperator::leftAssociative ( ) const

Definition at line 2577 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 542 of file qgsexpression.h.

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

Implements QgsExpression::Node.

Definition at line 536 of file qgsexpression.h.

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

Definition at line 532 of file qgsexpression.h.

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

Definition at line 533 of file qgsexpression.h.

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

Definition at line 534 of file qgsexpression.h.

int QgsExpression::NodeBinaryOperator::precedence ( ) const

Definition at line 2531 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2524 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 541 of file qgsexpression.h.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected

Definition at line 554 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected

Definition at line 555 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

Definition at line 556 of file qgsexpression.h.


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