|
| QgsStaticExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, FcnEval fcn, const QString &group, const QString &helpText, const std::function< bool(const QgsExpressionNodeFunction *node)> &usesGeometry, const std::function< QSet< QString >(const QgsExpressionNodeFunction *node)> &referencedColumns, bool lazyEval=false, const QStringList &aliases=QStringList(), bool handlesNull=false) |
| Static function for evaluation against a QgsExpressionContext, using a named list of parameter values. More...
|
|
| QgsStaticExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, FcnEval fcn, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, const QStringList &aliases=QStringList(), bool handlesNull=false) |
| Static function for evaluation against a QgsExpressionContext, using a named list of parameter values. More...
|
|
| QgsStaticExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, FcnEval fcn, const QStringList &groups, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, const QStringList &aliases=QStringList(), bool handlesNull=false) |
| Static function for evaluation against a QgsExpressionContext, using a named list of parameter values and list of groups. More...
|
|
| QgsStaticExpressionFunction (const QString &fnname, int params, FcnEval fcn, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, const QStringList &aliases=QStringList(), bool handlesNull=false) |
| Static function for evaluation against a QgsExpressionContext, using an unnamed list of parameter values. More...
|
|
| QgsStaticExpressionFunction (const QString &fnname, int params, FcnEval fcn, const QStringList &groups, const QString &helpText=QString(), bool usesGeometry=false, const QSet< QString > &referencedColumns=QSet< QString >(), bool lazyEval=false, const QStringList &aliases=QStringList(), bool handlesNull=false) |
| Static function for evaluation against a QgsExpressionContext, using an unnamed list of parameter values and list of groups. More...
|
|
QStringList | aliases () const override |
| Returns a list of possible aliases for the function. More...
|
|
QVariant | func (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node) override |
| Returns result of evaluating the function. More...
|
|
bool | isStatic (const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context) const override |
| Will be called during prepare to determine if the function is static. More...
|
|
bool | prepare (const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context) const override |
| This will be called during the prepare step() of an expression if it is not static. More...
|
|
QSet< QString > | referencedColumns (const QgsExpressionNodeFunction *node) const override |
| Returns a set of field names which are required for this function. More...
|
|
void | setIsStatic (bool isStatic) |
| Tag this function as either static or not static. More...
|
|
void | setIsStaticFunction (const std::function< bool(const QgsExpressionNodeFunction *, QgsExpression *, const QgsExpressionContext *) > &isStatic) |
| Set a function that will be called in the prepare step to determine if the function is static or not. More...
|
|
void | setPrepareFunction (const std::function< bool(const QgsExpressionNodeFunction *, QgsExpression *, const QgsExpressionContext *)> &prepareFunc) |
| Set a function that will be called in the prepare step to determine if the function is static or not. More...
|
|
bool | usesGeometry (const QgsExpressionNodeFunction *node) const override |
| Does this function use a geometry object. More...
|
|
| QgsExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, const QString &group, const QString &helpText=QString(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false) |
| Constructor for function which uses named parameter list. More...
|
|
| QgsExpressionFunction (const QString &fnname, const QgsExpressionFunction::ParameterList ¶ms, const QStringList &groups, const QString &helpText=QString(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false) |
| Constructor for function which uses named parameter list and group list. More...
|
|
| QgsExpressionFunction (const QString &fnname, int params, const QString &group, const QString &helpText=QString(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false) |
| Constructor for function which uses unnamed parameters. More...
|
|
| QgsExpressionFunction (const QString &fnname, int params, const QStringList &groups, const QString &helpText=QString(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false) |
| Constructor for function which uses unnamed parameters and group list. More...
|
|
virtual | ~QgsExpressionFunction ()=default |
|
virtual QStringList | aliases () const |
| Returns a list of possible aliases for the function. More...
|
|
virtual QVariant | func (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node)=0 |
| Returns result of evaluating the function. More...
|
|
QString | group () const |
| Returns the first group which the function belongs to. More...
|
|
QStringList | groups () const |
| Returns a list of the groups the function belongs to. More...
|
|
virtual bool | handlesNull () const |
| Returns true if the function handles NULL values in arguments by itself, and the default NULL value handling should be skipped. More...
|
|
const QString | helpText () const |
| The help text for the function. More...
|
|
bool | isContextual () const |
| Returns whether the function is only available if provided by a QgsExpressionContext object. More...
|
|
virtual bool | isDeprecated () const |
| Returns true if the function is deprecated and should not be presented as a valid option to users in expression builders. More...
|
|
virtual bool | isStatic (const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context) const |
| Will be called during prepare to determine if the function is static. More...
|
|
bool | lazyEval () const |
| true if this function should use lazy evaluation. More...
|
|
int | minParams () const |
| The minimum number of parameters this function takes. More...
|
|
QString | name () const |
| The name of the function. More...
|
|
bool | operator== (const QgsExpressionFunction &other) const |
|
const QgsExpressionFunction::ParameterList & | parameters () const |
| Returns the list of named parameters for the function, if set. More...
|
|
int | params () const |
| The number of parameters this function takes. More...
|
|
virtual bool | prepare (const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context) const |
| This will be called during the prepare step() of an expression if it is not static. More...
|
|
virtual QSet< QString > | referencedColumns (const QgsExpressionNodeFunction *node) const |
| Returns a set of field names which are required for this function. More...
|
|
virtual QVariant | run (QgsExpressionNode::NodeList *args, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node) |
| Evaluates the function, first evaluating all required arguments before passing them to the function's func() method. More...
|
|
virtual bool | usesGeometry (const QgsExpressionNodeFunction *node) const |
| Does this function use a geometry object. More...
|
|