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

Public Member Functions | |
| Function (QString fnname, int params, QString group, QString helpText=QString(), bool usesGeometry=false) | |
| QString | name () |
| The name of the function. More... | |
| int | params () |
| The number of parameters this function takes. More... | |
| bool | usesgeometry () |
| Does this function use a geometry object. More... | |
| QString | group () |
| The group the function belongs to. More... | |
| QString | helptext () |
| The help text for the function. More... | |
| virtual QVariant | func (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)=0 |
| bool | operator== (const Function &other) const |
Private Attributes | |
| QString | mName |
| int | mParams |
| bool | mUsesGeometry |
| QString | mGroup |
| QString | mHelpText |
A abstract base class for defining QgsExpression functions.
Definition at line 244 of file qgsexpression.h.
|
inline |
Definition at line 247 of file qgsexpression.h.
|
pure virtual |
Implemented in QgsExpression::StaticFunction.
Referenced by QgsExpression::NodeFunction::eval().
|
inline |
The group the function belongs to.
Definition at line 256 of file qgsexpression.h.
Referenced by QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
|
inline |
The help text for the function.
Definition at line 258 of file qgsexpression.h.
References QgsExpression::helptext().
Referenced by QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
|
inline |
The name of the function.
Definition at line 250 of file qgsexpression.h.
Referenced by QgsExpression::NodeFunction::dump(), QgsExpression::NodeFunction::eval(), QgsOgcUtils::expressionFunctionToOgcFilter(), geometryFromConstExpr(), isGeometryColumn(), QgsOgcUtils::nodeFunctionFromOgcFilter(), and QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
|
inline |
Definition at line 262 of file qgsexpression.h.
References mName.
|
inline |
The number of parameters this function takes.
Definition at line 252 of file qgsexpression.h.
Referenced by QgsExpression::NodeFunction::dump(), QgsOgcUtils::expressionFunctionToOgcFilter(), and QgsExpressionBuilderWidget::QgsExpressionBuilderWidget().
|
inline |
Does this function use a geometry object.
Definition at line 254 of file qgsexpression.h.
|
private |
Definition at line 274 of file qgsexpression.h.
|
private |
Definition at line 275 of file qgsexpression.h.
|
private |
Definition at line 271 of file qgsexpression.h.
Referenced by operator==().
|
private |
Definition at line 272 of file qgsexpression.h.
|
private |
Definition at line 273 of file qgsexpression.h.
1.8.7