QGIS API Documentation  2.3.0-Master
 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
 
int precedence () 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 425 of file qgsexpression.h.

Constructor & Destructor Documentation

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

Definition at line 428 of file qgsexpression.h.

QgsExpression::NodeBinaryOperator::~NodeBinaryOperator ( )
inline

Definition at line 429 of file qgsexpression.h.

Member Function Documentation

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

Implements QgsExpression::Node.

Definition at line 442 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 2227 of file qgsexpression.cpp.

References QgsExpression::BinaryOperatorText, and precedence().

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

Implements QgsExpression::Node.

Definition at line 441 of file qgsexpression.h.

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

Implements QgsExpression::Node.

Definition at line 435 of file qgsexpression.h.

References QgsExpression::ntBinaryOperator.

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

Definition at line 431 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Definition at line 432 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Definition at line 433 of file qgsexpression.h.

Referenced by QgsOgcUtils::expressionBinaryOperatorToOgcFilter().

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

Implements QgsExpression::Node.

Definition at line 2175 of file qgsexpression.cpp.

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

Implements QgsExpression::Node.

Definition at line 440 of file qgsexpression.h.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected

Definition at line 452 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected

Definition at line 453 of file qgsexpression.h.

Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

Definition at line 454 of file qgsexpression.h.


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