Skip to content

Commit

Permalink
Add missing class declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 23, 2018
1 parent edc2724 commit 81587e1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/core/expression/qgsexpressionfunction.h
Expand Up @@ -521,6 +521,29 @@ class QgsArrayForeachExpressionFunction : public QgsExpressionFunction

};

/**
* Handles the ``array_foreach(array, expression)`` expression function.
* It temporarily appends a new scope to the expression context.
*
* \ingroup core
* \note Not available in Python bindings
* \since QGIS 3.4
*/
class QgsArrayFilterExpressionFunction : public QgsExpressionFunction
{
public:
QgsArrayFilterExpressionFunction();

bool isStatic( const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context ) const override;

QVariant run( QgsExpressionNode::NodeList *args, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node ) override;

QVariant func( const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent, const QgsExpressionNodeFunction *node ) override;

bool prepare( const QgsExpressionNodeFunction *node, QgsExpression *parent, const QgsExpressionContext *context ) const override;

};

/**
* Handles the ``with_variable(name, value, node)`` expression function.
* It temporarily appends a new scope to the expression context for all nested
Expand Down

0 comments on commit 81587e1

Please sign in to comment.