Expression function for use within a QgsExpressionContextScope.
More...
#include <qgsexpressioncontext.h>
|
| QgsScopedExpressionFunction (const QString &fnname, int params, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, bool handlesNull=false, bool isContextual=true) |
| Create a new QgsScopedExpressionFunction. More...
|
|
| QgsScopedExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, bool handlesNull=false, bool isContextual=true) |
| Create a new QgsScopedExpressionFunction using named parameters. More...
|
|
virtual QgsScopedExpressionFunction * | clone () const =0 |
| Returns a clone of the function. More...
|
|
QVariant | func (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node) override=0 |
|
bool | isStatic (const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context) const override |
|
QSet< QString > | referencedColumns (const QgsExpressionNodeFunction *node) const override |
|
bool | usesGeometry (const QgsExpressionNodeFunction *node) const override |
|
Expression function for use within a QgsExpressionContextScope.
This differs from a standard QgsExpression::Function in that it requires an implemented clone() method.
- Since
- QGIS 2.12
Definition at line 55 of file qgsexpressioncontext.h.
◆ QgsScopedExpressionFunction() [1/2]
QgsScopedExpressionFunction::QgsScopedExpressionFunction |
( |
const QString & |
fnname, |
|
|
int |
params, |
|
|
const QString & |
group, |
|
|
const QString & |
helpText = QString() , |
|
|
bool |
usesGeometry = false , |
|
|
const QSet< QString > & |
referencedColumns = QSet<QString>() , |
|
|
bool |
lazyEval = false , |
|
|
bool |
handlesNull = false , |
|
|
bool |
isContextual = true |
|
) |
| |
|
inline |
◆ QgsScopedExpressionFunction() [2/2]
QgsScopedExpressionFunction::QgsScopedExpressionFunction |
( |
const QString & |
fnname, |
|
|
const QgsExpressionFunction::ParameterList & |
params, |
|
|
const QString & |
group, |
|
|
const QString & |
helpText = QString() , |
|
|
bool |
usesGeometry = false , |
|
|
const QSet< QString > & |
referencedColumns = QSet<QString>() , |
|
|
bool |
lazyEval = false , |
|
|
bool |
handlesNull = false , |
|
|
bool |
isContextual = true |
|
) |
| |
|
inline |
◆ clone()
Returns a clone of the function.
◆ func()
QVariant QgsScopedExpressionFunction::func |
( |
const QVariantList & |
values, |
|
|
const QgsExpressionContext * |
context, |
|
|
QgsExpression * |
parent, |
|
|
const QgsExpressionNodeFunction * |
node |
|
) |
| |
|
overridepure virtual |
◆ isStatic()
bool QgsScopedExpressionFunction::isStatic |
( |
const QgsExpressionNodeFunction * |
node, |
|
|
QgsExpression * |
parent, |
|
|
const QgsExpressionContext * |
context |
|
) |
| const |
|
override |
◆ referencedColumns()
QSet< QString > QgsScopedExpressionFunction::referencedColumns |
( |
const QgsExpressionNodeFunction * |
node | ) |
const |
|
override |
◆ usesGeometry()
bool QgsScopedExpressionFunction::usesGeometry |
( |
const QgsExpressionNodeFunction * |
node | ) |
const |
|
override |
The documentation for this class was generated from the following files: