QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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
 
virtual QString dump () const
 
virtual QVariant eval (QgsExpression *parent, const QgsFeature *f)
 
virtual bool needsGeometry () const
 
virtual NodeType nodeType () const
 
BinaryOperator op () const
 
NodeopLeft () const
 
NodeopRight () const
 
int precedence () const
 
virtual bool prepare (QgsExpression *parent, const QgsFields &fields)
 
virtual QStringList referencedColumns () const
 
- 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 443 of file qgsexpression.h.

Constructor & Destructor Documentation

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

Definition at line 446 of file qgsexpression.h.

QgsExpression::NodeBinaryOperator::~NodeBinaryOperator ( )
inline

Definition at line 447 of file qgsexpression.h.

Member Function Documentation

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

Implements QgsExpression::Node.

Definition at line 460 of file qgsexpression.h.

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

Definition at line 2306 of file qgsexpression.cpp.

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

Definition at line 2333 of file qgsexpression.cpp.

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

Definition at line 2343 of file qgsexpression.cpp.

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

Definition at line 2320 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2409 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2128 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 459 of file qgsexpression.h.

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

Implements QgsExpression::Node.

Definition at line 453 of file qgsexpression.h.

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

Definition at line 449 of file qgsexpression.h.

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

Definition at line 450 of file qgsexpression.h.

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

Definition at line 451 of file qgsexpression.h.

int QgsExpression::NodeBinaryOperator::precedence ( ) const

Definition at line 2364 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2357 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 458 of file qgsexpression.h.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected

Definition at line 470 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected

Definition at line 471 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

Definition at line 472 of file qgsexpression.h.


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