QGIS API Documentation
2.12.0-Lyon
|
#include <qgsexpression.h>
Public Member Functions | |
NodeInOperator (Node *node, NodeList *list, bool notin=false) | |
virtual | ~NodeInOperator () |
virtual void | accept (Visitor &v) const override |
Support the visitor pattern. More... | |
virtual QString | dump () const override |
Abstract virtual dump method. More... | |
virtual QVariant | eval (QgsExpression *parent, const QgsExpressionContext *context) override |
Abstract virtual eval method Errors are reported to the parent. More... | |
bool | isNotIn () const |
NodeList * | list () const |
virtual bool | needsGeometry () const override |
Abstract virtual method which returns if the geometry is required to evaluate this expression. More... | |
Node * | node () const |
virtual NodeType | nodeType () const override |
Abstract virtual that returns the type of this node. More... | |
virtual bool | prepare (QgsExpression *parent, const QgsExpressionContext *context) override |
Abstract virtual preparation method Errors are reported to the parent. More... | |
virtual QStringList | referencedColumns () const override |
Abstract virtual method which returns a list of columns required to evaluate this node. More... | |
Public Member Functions inherited from QgsExpression::Node | |
virtual | ~Node () |
virtual Q_DECL_DEPRECATED QVariant | eval (QgsExpression *parent, const QgsFeature *f) |
Abstract virtual eval method Errors are reported to the parent. More... | |
virtual Q_DECL_DEPRECATED bool | prepare (QgsExpression *parent, const QgsFields &fields) |
Abstract virtual preparation method Errors are reported to the parent. More... | |
Protected Attributes | |
NodeList * | mList |
Node * | mNode |
bool | mNotIn |
Definition at line 753 of file qgsexpression.h.
|
inline |
Definition at line 756 of file qgsexpression.h.
|
inlinevirtual |
Definition at line 757 of file qgsexpression.h.
|
inlineoverridevirtual |
Support the visitor pattern.
For any implementation this should look like
C++:
v.visit( *this );
Python:
v.visit( self)
v | A visitor that visits this node. |
Implements QgsExpression::Node.
Definition at line 770 of file qgsexpression.h.
|
overridevirtual |
Abstract virtual dump method.
Implements QgsExpression::Node.
Definition at line 3214 of file qgsexpression.cpp.
|
overridevirtual |
Abstract virtual eval method Errors are reported to the parent.
Reimplemented from QgsExpression::Node.
Definition at line 3158 of file qgsexpression.cpp.
|
inline |
Definition at line 760 of file qgsexpression.h.
|
inline |
Definition at line 761 of file qgsexpression.h.
|
inlineoverridevirtual |
Abstract virtual method which returns if the geometry is required to evaluate this expression.
This needs to call needsGeometry()
recursively on any child nodes.
Implements QgsExpression::Node.
Definition at line 769 of file qgsexpression.h.
|
inline |
Definition at line 759 of file qgsexpression.h.
|
inlineoverridevirtual |
Abstract virtual that returns the type of this node.
Implements QgsExpression::Node.
Definition at line 763 of file qgsexpression.h.
|
overridevirtual |
Abstract virtual preparation method Errors are reported to the parent.
Reimplemented from QgsExpression::Node.
Definition at line 3204 of file qgsexpression.cpp.
|
inlineoverridevirtual |
Abstract virtual method which returns a list of columns required to evaluate this node.
When reimplementing this, you need to return any column that is required to evaluate this node and in addition recursively collect all the columns required to evaluate child nodes.
Implements QgsExpression::Node.
Definition at line 768 of file qgsexpression.h.
|
protected |
Definition at line 774 of file qgsexpression.h.
|
protected |
Definition at line 773 of file qgsexpression.h.
|
protected |
Definition at line 775 of file qgsexpression.h.