|
QGIS API Documentation
2.12.0-Lyon
|
A abstract base class for defining QgsExpression functions. More...
#include <qgsexpression.h>

Public Member Functions | |
| Function (const QString &fnname, int params, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QStringList &referencedColumns=QStringList(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false) | |
| virtual | ~Function () |
| virtual QStringList | aliases () const |
| Returns a list of possible aliases for the function. More... | |
| virtual Q_DECL_DEPRECATED QVariant | func (const QVariantList &, const QgsFeature *, QgsExpression *) |
| virtual QVariant | func (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent) |
| Returns result of evaluating the function. More... | |
| QString | group () |
| The group the function belongs to. More... | |
| virtual bool | handlesNull () const |
| const QString | helptext () |
| The help text for the function. More... | |
| bool | isContextual () const |
| Returns whether the function is only available if provided by a QgsExpressionContext object. More... | |
| bool | lazyEval () |
| True if this function should use lazy evaluation. More... | |
| QString | name () |
| The name of the function. More... | |
| bool | operator== (const Function &other) const |
| int | params () |
| The number of parameters this function takes. More... | |
| virtual QStringList | referencedColumns () const |
| bool | usesgeometry () |
| Does this function use a geometry object. More... | |
A abstract base class for defining QgsExpression functions.
Definition at line 352 of file qgsexpression.h.
|
inline |
Definition at line 355 of file qgsexpression.h.
|
inlinevirtual |
Definition at line 375 of file qgsexpression.h.
|
inlinevirtual |
Returns a list of possible aliases for the function.
These include other permissible names for the function, eg deprecated names.
Reimplemented in QgsExpression::StaticFunction.
Definition at line 389 of file qgsexpression.h.
|
virtual |
Reimplemented in QgsExpression::StaticFunction.
Definition at line 3682 of file qgsexpression.cpp.
|
virtual |
Returns result of evaluating the function.
| values | list of values passed to the function |
| context | context expression is being evaluated against |
| parent | parent expression |
Reimplemented in GetNamedProjectColor, QgsExpression::StaticFunction, and QgsScopedExpressionFunction.
Definition at line 3689 of file qgsexpression.cpp.
|
inline |
The group the function belongs to.
Definition at line 404 of file qgsexpression.h.
|
inlinevirtual |
Definition at line 428 of file qgsexpression.h.
|
inline |
The help text for the function.
Definition at line 406 of file qgsexpression.h.
|
inline |
Returns whether the function is only available if provided by a QgsExpressionContext object.
Definition at line 401 of file qgsexpression.h.
|
inline |
True if this function should use lazy evaluation.
Lazy evaluation functions take QgsExpression::Node objects rather than the node results when called. You can use node->eval(parent, feature) to evaluate the node and return the result Functions are non lazy default and will be given the node return value when called
Definition at line 394 of file qgsexpression.h.
|
inline |
The name of the function.
Definition at line 378 of file qgsexpression.h.
|
inline |
Definition at line 420 of file qgsexpression.h.
|
inline |
The number of parameters this function takes.
Definition at line 380 of file qgsexpression.h.
|
inlinevirtual |
Definition at line 396 of file qgsexpression.h.
|
inline |
Does this function use a geometry object.
Definition at line 382 of file qgsexpression.h.
1.8.9.1