QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsExpression::StaticFunction Class Reference

#include <qgsexpression.h>

Inheritance diagram for QgsExpression::StaticFunction:
Inheritance graph
Collaboration diagram for QgsExpression::StaticFunction:
Collaboration graph

Public Member Functions

 StaticFunction (QString fnname, int params, FcnEval fcn, QString group, QString helpText=QString(), bool usesGeometry=false)
virtual QVariant func (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
- Public Member Functions inherited from QgsExpression::Function
 Function (QString fnname, int params, QString group, QString helpText=QString(), bool usesGeometry=false)
QString name ()
 The name of the function.
int params ()
 The number of parameters this function takes.
bool usesgeometry ()
 Does this function use a geometry object.
QString group ()
 The group the function belongs to.
QString helptext ()
 The help text for the function.
bool operator== (const Function &other) const

Private Attributes

FcnEval mFnc

Detailed Description

Definition at line 274 of file qgsexpression.h.

Constructor & Destructor Documentation

QgsExpression::StaticFunction::StaticFunction ( QString  fnname,
int  params,
FcnEval  fcn,
QString  group,
QString  helpText = QString(),
bool  usesGeometry = false 

Definition at line 277 of file qgsexpression.h.

Member Function Documentation

virtual QVariant QgsExpression::StaticFunction::func ( const QVariantList &  values,
const QgsFeature f,
QgsExpression parent 

Implements QgsExpression::Function.

Definition at line 280 of file qgsexpression.h.

Member Data Documentation

FcnEval QgsExpression::StaticFunction::mFnc

Definition at line 286 of file qgsexpression.h.

The documentation for this class was generated from the following file: