QGIS API Documentation  2.6.0-Brighton
 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]

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements QgsExpression::Node.

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.

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

Implements QgsExpression::Node.

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

Implements QgsExpression::Node.

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

Implements QgsExpression::Node.

BinaryOperator QgsExpression::NodeBinaryOperator::op ( ) const
inline
Node* QgsExpression::NodeBinaryOperator::opLeft ( ) const
inline
Node* QgsExpression::NodeBinaryOperator::opRight ( ) const
inline
int QgsExpression::NodeBinaryOperator::precedence ( ) const
bool QgsExpression::NodeBinaryOperator::prepare ( QgsExpression parent,
const QgsFields fields 
)
virtual

Implements QgsExpression::Node.

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

Implements QgsExpression::Node.

Member Data Documentation

BinaryOperator QgsExpression::NodeBinaryOperator::mOp
protected
Node* QgsExpression::NodeBinaryOperator::mOpLeft
protected
Node* QgsExpression::NodeBinaryOperator::mOpRight
protected

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