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 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
inlinevirtual

Implements QgsExpression::Node.

Definition at line 493 of file qgsexpression.h.

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

Definition at line 2375 of file qgsexpression.cpp.

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

Definition at line 2402 of file qgsexpression.cpp.

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

Definition at line 2412 of file qgsexpression.cpp.

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

Definition at line 2389 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2479 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2188 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 492 of file qgsexpression.h.

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

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 2433 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 2426 of file qgsexpression.cpp.

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

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: