QGIS API Documentation  2.0.1-Dufour
 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]
Collaboration diagram for QgsExpression::NodeBinaryOperator:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

BinaryOperator mOp
NodemOpLeft
NodemOpRight

Detailed Description

Definition at line 424 of file qgsexpression.h.

Constructor & Destructor Documentation

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

Definition at line 427 of file qgsexpression.h.

QgsExpression::NodeBinaryOperator::~NodeBinaryOperator ( )
inline

Definition at line 428 of file qgsexpression.h.

Member Function Documentation

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

Implements QgsExpression::Node.

Definition at line 441 of file qgsexpression.h.

References QgsExpression::Visitor::visit().

bool QgsExpression::NodeBinaryOperator::compare ( double  diff)
protected
QDateTime QgsExpression::NodeBinaryOperator::computeDateTimeFromInterval ( QDateTime  d,
QgsExpression::Interval i 
)
protected
double QgsExpression::NodeBinaryOperator::computeDouble ( double  x,
double  y 
)
protected
int QgsExpression::NodeBinaryOperator::computeInt ( int  x,
int  y 
)
protected
QString QgsExpression::NodeBinaryOperator::dump ( ) const
virtual

Implements QgsExpression::Node.

Definition at line 2099 of file qgsexpression.cpp.

References QgsExpression::BinaryOperatorText.

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

Implements QgsExpression::Node.

Definition at line 440 of file qgsexpression.h.

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

Implements QgsExpression::Node.

Definition at line 434 of file qgsexpression.h.

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

Definition at line 430 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Definition at line 431 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Definition at line 432 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Implements QgsExpression::Node.

Definition at line 2092 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 439 of file qgsexpression.h.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected

Definition at line 449 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected

Definition at line 450 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

Definition at line 451 of file qgsexpression.h.


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