|
QGIS API Documentation
master-6227475
|
A abstract base class for defining QgsExpression functions. More...
#include <qgsexpression.h>
Inheritance diagram for QgsExpression::Function:Public Member Functions | |
| Function (QString fnname, int params, QString group, QString helpText=QString(), bool usesGeometry=false) | |
| virtual QVariant | func (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)=0 |
| QString | group () |
| The group the function belongs to. | |
| QString | helptext () |
| The help text for the function. | |
| QString | name () |
| The name of the function. | |
| bool | operator== (const Function &other) const |
| int | params () |
| The number of parameters this function takes. | |
| bool | usesgeometry () |
| Does this function use a geometry object. | |
Private Attributes | |
| QString | mGroup |
| QString | mHelpText |
| QString | mName |
| int | mParams |
| bool | mUsesGeometry |
A abstract base class for defining QgsExpression functions.
Definition at line 240 of file qgsexpression.h.
| QgsExpression::Function::Function | ( | QString | fnname, |
| int | params, | ||
| QString | group, | ||
| QString | helpText = QString(), |
||
| bool | usesGeometry = false |
||
| ) | [inline] |
Definition at line 243 of file qgsexpression.h.
| virtual QVariant QgsExpression::Function::func | ( | const QVariantList & | values, |
| const QgsFeature * | f, | ||
| QgsExpression * | parent | ||
| ) | [pure virtual] |
Implemented in QgsExpression::StaticFunction.
Referenced by QgsExpression::NodeFunction::eval().
| QString QgsExpression::Function::group | ( | ) | [inline] |
The group the function belongs to.
Definition at line 252 of file qgsexpression.h.
Referenced by QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
| QString QgsExpression::Function::helptext | ( | ) | [inline] |
The help text for the function.
Definition at line 254 of file qgsexpression.h.
References QgsExpression::helptext().
Referenced by QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
| QString QgsExpression::Function::name | ( | ) | [inline] |
The name of the function.
Definition at line 246 of file qgsexpression.h.
Referenced by QgsExpression::NodeFunction::dump(), QgsExpression::NodeFunction::eval(), QgsOgcUtils::expressionFunctionToOgcFilter(), isGeometryColumn(), QgsOgcUtils::nodeFunctionFromOgcFilter(), and QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
| bool QgsExpression::Function::operator== | ( | const Function & | other | ) | const [inline] |
Definition at line 258 of file qgsexpression.h.
References mName.
| int QgsExpression::Function::params | ( | ) | [inline] |
The number of parameters this function takes.
Definition at line 248 of file qgsexpression.h.
Referenced by QgsExpression::NodeFunction::dump(), QgsOgcUtils::expressionFunctionToOgcFilter(), and QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
| bool QgsExpression::Function::usesgeometry | ( | ) | [inline] |
Does this function use a geometry object.
Definition at line 250 of file qgsexpression.h.
QString QgsExpression::Function::mGroup [private] |
Definition at line 270 of file qgsexpression.h.
QString QgsExpression::Function::mHelpText [private] |
Definition at line 271 of file qgsexpression.h.
QString QgsExpression::Function::mName [private] |
Definition at line 267 of file qgsexpression.h.
Referenced by operator==().
int QgsExpression::Function::mParams [private] |
Definition at line 268 of file qgsexpression.h.
bool QgsExpression::Function::mUsesGeometry [private] |
Definition at line 269 of file qgsexpression.h.