QGIS API Documentation  2.11.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Macros | Enumerations | Functions | Variables
qgsexpression.cpp File Reference
#include "qgsexpression.h"
#include <QtDebug>
#include <QDomDocument>
#include <QDate>
#include <QRegExp>
#include <QColor>
#include <QUuid>
#include <math.h>
#include <limits>
#include "qgsdistancearea.h"
#include "qgsfeature.h"
#include "qgsgeometry.h"
#include "qgslogger.h"
#include "qgsmaplayerregistry.h"
#include "qgsogcutils.h"
#include "qgsvectorlayer.h"
#include "qgssymbollayerv2utils.h"
#include "qgsvectorcolorrampv2.h"
#include "qgsstylev2.h"
#include "qgsexpressioncontext.h"
#include "qgsproject.h"
#include "qgsstringutils.h"
Include dependency graph for qgsexpression.cpp:

Go to the source code of this file.

Macros

#define ENSURE_GEOM_TYPE(f, g, geomtype)
 
#define ENSURE_NO_EVAL_ERROR   { if (parent->hasEvalError()) return QVariant(); }
 
#define FEAT_FROM_CONTEXT(c, f)
 
#define SET_EVAL_ERROR(x)   { parent->setEvalErrorString(x); return QVariant(); }
 
#define TVL_False   QVariant(0)
 
#define TVL_True   QVariant(1)
 
#define TVL_Unknown   QVariant()
 

Enumerations

enum  TVL { False, True, Unknown }
 

Functions

static QVariant fcnAbs (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAcos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAge (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAsin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAtan (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAtan2 (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAttribute (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBbox (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBounds (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBoundsHeight (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBoundsWidth (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBuffer (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCeil (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCentroid (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnClamp (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCoalesce (const QVariantList &values, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnColorCmyk (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorHsl (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorHsv (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorRgb (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCombine (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnConcat (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnContains (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnConvexHull (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCrosses (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDay (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDifference (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDisjoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDistance (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnExp (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnExpScale (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFeature (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnFeatureId (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnFloor (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatDate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatNumber (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatString (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomArea (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeometry (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnGeomFromGML (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomFromWKT (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomLength (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeomPerimeter (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeomToWKT (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetFeature (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetGeometry (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetLayerProperty (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetVariable (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnHamming (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnHour (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIf (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnIntersection (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIntersects (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLCS (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLeft (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLength (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLevenshtein (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLinearScale (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLn (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLog (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLog10 (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLower (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLPad (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMinute (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMonth (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnNow (const QVariantList &, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnOverlaps (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnPi (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
QVariant fcnRampColor (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpMatch (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpReplace (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpSubstr (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnReplace (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRight (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRnd (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRndF (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRound (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRowNumber (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnRPad (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnScale (const QVariantList &, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSeconds (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSoundex (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSpecialColumn (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSqrt (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnStrpos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSubstr (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSymDifference (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTan (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTitle (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToDate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToDateTime (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToInt (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToInterval (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToReal (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToString (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToTime (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTouches (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTransformGeometry (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTrim (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnUpper (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnUuid (const QVariantList &, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnWeek (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnWithin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnWordwrap (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnX (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnXat (const QVariantList &values, const QgsExpressionContext *f, QgsExpression *parent)
 
static QVariant fcnXMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnXMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnY (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnYat (const QVariantList &values, const QgsExpressionContext *f, QgsExpression *parent)
 
static QVariant fcnYear (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnYMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnYMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorCmyka (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorHsla (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorHsva (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorRgba (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QDateTime getDateTimeValue (const QVariant &value, QgsExpression *parent)
 
static QDate getDateValue (const QVariant &value, QgsExpression *parent)
 
static double getDoubleValue (const QVariant &value, QgsExpression *parent)
 
static QgsFeature getFeature (const QVariant &value, QgsExpression *parent)
 
static QgsGeometry getGeometry (const QVariant &value, QgsExpression *parent)
 
static QgsExpression::Interval getInterval (const QVariant &value, QgsExpression *parent, bool report_error=false)
 
static int getIntValue (const QVariant &value, QgsExpression *parent)
 
static QgsExpression::NodegetNode (const QVariant &value, QgsExpression *parent)
 
static QString getStringValue (const QVariant &value, QgsExpression *)
 
static QTime getTimeValue (const QVariant &value, QgsExpression *parent)
 
static TVL getTVLValue (const QVariant &value, QgsExpression *parent)
 
bool isDateTimeSafe (const QVariant &v)
 
bool isDoubleSafe (const QVariant &v)
 
bool isIntervalSafe (const QVariant &v)
 
bool isIntSafe (const QVariant &v)
 
bool isNull (const QVariant &v)
 
QgsExpression::NodeparseExpression (const QString &str, QString &parserErrorMsg)
 
static QVariant pointAt (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant tvl2variant (TVL v)
 

Variables

static TVL AND [3][3]
 
static TVL NOT [3] = { True, False, Unknown }
 
static TVL OR [3][3]
 

Macro Definition Documentation

#define ENSURE_GEOM_TYPE (   f,
  g,
  geomtype 
)
Value:
const QgsGeometry* g = f.constGeometry(); \
if (!g || g->type() != geomtype) return QVariant();
QGis::GeometryType type() const
Returns type of the geometry as a QGis::GeometryType.
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:75

Definition at line 1077 of file qgsexpression.cpp.

#define ENSURE_NO_EVAL_ERROR   { if (parent->hasEvalError()) return QVariant(); }

Definition at line 216 of file qgsexpression.cpp.

#define FEAT_FROM_CONTEXT (   c,
 
)
Value:
if (!c || !c->hasVariable(QgsExpressionContext::EXPR_FEATURE)) return QVariant(); \
QgsFeature f = qvariant_cast<QgsFeature>( c->variable( QgsExpressionContext::EXPR_FEATURE ) );
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:162
static const QString EXPR_FEATURE

Definition at line 862 of file qgsexpression.cpp.

#define SET_EVAL_ERROR (   x)    { parent->setEvalErrorString(x); return QVariant(); }

Definition at line 217 of file qgsexpression.cpp.

#define TVL_False   QVariant(0)

Definition at line 158 of file qgsexpression.cpp.

#define TVL_True   QVariant(1)

Definition at line 157 of file qgsexpression.cpp.

#define TVL_Unknown   QVariant()

Definition at line 159 of file qgsexpression.cpp.

Enumeration Type Documentation

enum TVL
Enumerator
False 
True 
Unknown 

Definition at line 121 of file qgsexpression.cpp.

Function Documentation

static QVariant fcnAbs ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 396 of file qgsexpression.cpp.

static QVariant fcnAcos ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 422 of file qgsexpression.cpp.

static QVariant fcnAge ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 963 of file qgsexpression.cpp.

static QVariant fcnAsin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 417 of file qgsexpression.cpp.

static QVariant fcnAtan ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 427 of file qgsexpression.cpp.

static QVariant fcnAtan2 ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 432 of file qgsexpression.cpp.

static QVariant fcnAttribute ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 879 of file qgsexpression.cpp.

static QVariant fcnBbox ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1233 of file qgsexpression.cpp.

static QVariant fcnBounds ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1188 of file qgsexpression.cpp.

static QVariant fcnBoundsHeight ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1203 of file qgsexpression.cpp.

static QVariant fcnBoundsWidth ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1197 of file qgsexpression.cpp.

static QVariant fcnBuffer ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1281 of file qgsexpression.cpp.

static QVariant fcnCeil ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 616 of file qgsexpression.cpp.

static QVariant fcnCentroid ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1297 of file qgsexpression.cpp.

static QVariant fcnClamp ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 589 of file qgsexpression.cpp.

static QVariant fcnCoalesce ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression  
)
static

Definition at line 640 of file qgsexpression.cpp.

static QVariant fcnColorCmyk ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1564 of file qgsexpression.cpp.

static QVariant fcnColorHsl ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1484 of file qgsexpression.cpp.

static QVariant fcnColorHsv ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1524 of file qgsexpression.cpp.

static QVariant fcnColorRgb ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1417 of file qgsexpression.cpp.

static QVariant fcnCombine ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1346 of file qgsexpression.cpp.

static QVariant fcnConcat ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 886 of file qgsexpression.cpp.

static QVariant fcnContains ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1263 of file qgsexpression.cpp.

static QVariant fcnConvexHull ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1305 of file qgsexpression.cpp.

static QVariant fcnCos ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 407 of file qgsexpression.cpp.

static QVariant fcnCrosses ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1257 of file qgsexpression.cpp.

static QVariant fcnDay ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 971 of file qgsexpression.cpp.

static QVariant fcnDifference ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1313 of file qgsexpression.cpp.

static QVariant fcnDisjoint ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1239 of file qgsexpression.cpp.

static QVariant fcnDistance ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1322 of file qgsexpression.cpp.

static QVariant fcnExp ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 438 of file qgsexpression.cpp.

static QVariant fcnExpScale ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 519 of file qgsexpression.cpp.

static QVariant fcnFeature ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression  
)
static

Definition at line 872 of file qgsexpression.cpp.

static QVariant fcnFeatureId ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression  
)
static

Definition at line 865 of file qgsexpression.cpp.

static QVariant fcnFloor ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 610 of file qgsexpression.cpp.

static QVariant fcnFormatDate ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1410 of file qgsexpression.cpp.

static QVariant fcnFormatNumber ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1398 of file qgsexpression.cpp.

static QVariant fcnFormatString ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 932 of file qgsexpression.cpp.

static QVariant fcnGeomArea ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 1166 of file qgsexpression.cpp.

static QVariant fcnGeometry ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression  
)
static

Definition at line 1140 of file qgsexpression.cpp.

static QVariant fcnGeomFromGML ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1157 of file qgsexpression.cpp.

static QVariant fcnGeomFromWKT ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1149 of file qgsexpression.cpp.

static QVariant fcnGeomLength ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 1173 of file qgsexpression.cpp.

static QVariant fcnGeomPerimeter ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 1180 of file qgsexpression.cpp.

static QVariant fcnGeomToWKT ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1355 of file qgsexpression.cpp.

static QVariant fcnGetFeature ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1642 of file qgsexpression.cpp.

static QVariant fcnGetGeometry ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1614 of file qgsexpression.cpp.

static QVariant fcnGetLayerProperty ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1688 of file qgsexpression.cpp.

static QVariant fcnGetVariable ( const QVariantList &  values,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 381 of file qgsexpression.cpp.

static QVariant fcnHamming ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 692 of file qgsexpression.cpp.

static QVariant fcnHour ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1031 of file qgsexpression.cpp.

static QVariant fcnIf ( const QVariantList &  values,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 1432 of file qgsexpression.cpp.

static QVariant fcnIntersection ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1328 of file qgsexpression.cpp.

static QVariant fcnIntersects ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1245 of file qgsexpression.cpp.

static QVariant fcnLCS ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 685 of file qgsexpression.cpp.

static QVariant fcnLeft ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 909 of file qgsexpression.cpp.

static QVariant fcnLength ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 772 of file qgsexpression.cpp.

static QVariant fcnLevenshtein ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 678 of file qgsexpression.cpp.

static QVariant fcnLinearScale ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 487 of file qgsexpression.cpp.

static QVariant fcnLn ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 443 of file qgsexpression.cpp.

static QVariant fcnLog ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 457 of file qgsexpression.cpp.

static QVariant fcnLog10 ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 450 of file qgsexpression.cpp.

static QVariant fcnLower ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 650 of file qgsexpression.cpp.

static QVariant fcnLPad ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 924 of file qgsexpression.cpp.

static QVariant fcnMax ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 553 of file qgsexpression.cpp.

static QVariant fcnMin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 571 of file qgsexpression.cpp.

static QVariant fcnMinute ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1046 of file qgsexpression.cpp.

static QVariant fcnMonth ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1001 of file qgsexpression.cpp.

static QVariant fcnNow ( const QVariantList &  ,
const QgsExpressionContext ,
QgsExpression  
)
static

Definition at line 943 of file qgsexpression.cpp.

static QVariant fcnOverlaps ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1269 of file qgsexpression.cpp.

static QVariant fcnPi ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1386 of file qgsexpression.cpp.

QVariant fcnRampColor ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)

Definition at line 1470 of file qgsexpression.cpp.

static QVariant fcnRegexpMatch ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 799 of file qgsexpression.cpp.

static QVariant fcnRegexpReplace ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 784 of file qgsexpression.cpp.

static QVariant fcnRegexpSubstr ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 813 of file qgsexpression.cpp.

static QVariant fcnReplace ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 777 of file qgsexpression.cpp.

static QVariant fcnRight ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 902 of file qgsexpression.cpp.

static QVariant fcnRnd ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 476 of file qgsexpression.cpp.

static QVariant fcnRndF ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 465 of file qgsexpression.cpp.

static QVariant fcnRound ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1368 of file qgsexpression.cpp.

static QVariant fcnRowNumber ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 851 of file qgsexpression.cpp.

static QVariant fcnRPad ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 916 of file qgsexpression.cpp.

static QVariant fcnScale ( const QVariantList &  ,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1393 of file qgsexpression.cpp.

static QVariant fcnSeconds ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1061 of file qgsexpression.cpp.

static QVariant fcnSin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 402 of file qgsexpression.cpp.

static QVariant fcnSoundex ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 700 of file qgsexpression.cpp.

static QVariant fcnSpecialColumn ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1608 of file qgsexpression.cpp.

static QVariant fcnSqrt ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 390 of file qgsexpression.cpp.

static QVariant fcnStrpos ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 896 of file qgsexpression.cpp.

static QVariant fcnSubstr ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 843 of file qgsexpression.cpp.

static QVariant fcnSymDifference ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1337 of file qgsexpression.cpp.

static QVariant fcnTan ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 412 of file qgsexpression.cpp.

static QVariant fcnTitle ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 660 of file qgsexpression.cpp.

static QVariant fcnToDate ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 948 of file qgsexpression.cpp.

static QVariant fcnToDateTime ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 635 of file qgsexpression.cpp.

static QVariant fcnToInt ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 622 of file qgsexpression.cpp.

static QVariant fcnToInterval ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 958 of file qgsexpression.cpp.

static QVariant fcnToReal ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 626 of file qgsexpression.cpp.

static QVariant fcnToString ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 630 of file qgsexpression.cpp.

static QVariant fcnToTime ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 953 of file qgsexpression.cpp.

static QVariant fcnTouches ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1251 of file qgsexpression.cpp.

static QVariant fcnTransformGeometry ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1623 of file qgsexpression.cpp.

static QVariant fcnTrim ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 672 of file qgsexpression.cpp.

static QVariant fcnUpper ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 655 of file qgsexpression.cpp.

static QVariant fcnUuid ( const QVariantList &  ,
const QgsExpressionContext ,
QgsExpression  
)
static

Definition at line 838 of file qgsexpression.cpp.

static QVariant fcnWeek ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1016 of file qgsexpression.cpp.

static QVariant fcnWithin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1275 of file qgsexpression.cpp.

static QVariant fcnWordwrap ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 706 of file qgsexpression.cpp.

static QVariant fcnX ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression  
)
static

Definition at line 1080 of file qgsexpression.cpp.

static QVariant fcnXat ( const QVariantList &  values,
const QgsExpressionContext f,
QgsExpression parent 
)
static

Definition at line 1124 of file qgsexpression.cpp.

static QVariant fcnXMax ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1215 of file qgsexpression.cpp.

static QVariant fcnXMin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1209 of file qgsexpression.cpp.

static QVariant fcnY ( const QVariantList &  ,
const QgsExpressionContext context,
QgsExpression  
)
static

Definition at line 1093 of file qgsexpression.cpp.

static QVariant fcnYat ( const QVariantList &  values,
const QgsExpressionContext f,
QgsExpression parent 
)
static

Definition at line 1132 of file qgsexpression.cpp.

static QVariant fcnYear ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 986 of file qgsexpression.cpp.

static QVariant fcnYMax ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1227 of file qgsexpression.cpp.

static QVariant fcnYMin ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1221 of file qgsexpression.cpp.

static QVariant fncColorCmyka ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1586 of file qgsexpression.cpp.

static QVariant fncColorHsla ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1504 of file qgsexpression.cpp.

static QVariant fncColorHsva ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1544 of file qgsexpression.cpp.

static QVariant fncColorRgba ( const QVariantList &  values,
const QgsExpressionContext ,
QgsExpression parent 
)
static

Definition at line 1455 of file qgsexpression.cpp.

static QDateTime getDateTimeValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 273 of file qgsexpression.cpp.

static QDate getDateValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 287 of file qgsexpression.cpp.

static double getDoubleValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 246 of file qgsexpression.cpp.

static QgsFeature getFeature ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 341 of file qgsexpression.cpp.

static QgsGeometry getGeometry ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 332 of file qgsexpression.cpp.

static QgsExpression::Interval getInterval ( const QVariant value,
QgsExpression parent,
bool  report_error = false 
)
static

Definition at line 315 of file qgsexpression.cpp.

static int getIntValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 258 of file qgsexpression.cpp.

static QgsExpression::Node* getNode ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 350 of file qgsexpression.cpp.

static QString getStringValue ( const QVariant value,
QgsExpression  
)
static

Definition at line 241 of file qgsexpression.cpp.

static QTime getTimeValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 301 of file qgsexpression.cpp.

static TVL getTVLValue ( const QVariant value,
QgsExpression parent 
)
static

Definition at line 360 of file qgsexpression.cpp.

bool isDateTimeSafe ( const QVariant v)
inline

Definition at line 191 of file qgsexpression.cpp.

bool isDoubleSafe ( const QVariant v)
inline

Definition at line 174 of file qgsexpression.cpp.

bool isIntervalSafe ( const QVariant v)
inline

Definition at line 197 of file qgsexpression.cpp.

bool isIntSafe ( const QVariant v)
inline

Definition at line 164 of file qgsexpression.cpp.

bool isNull ( const QVariant v)
inline

Definition at line 211 of file qgsexpression.cpp.

QgsExpression::Node* parseExpression ( const QString str,
QString parserErrorMsg 
)
static QVariant pointAt ( const QVariantList &  values,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 1107 of file qgsexpression.cpp.

static QVariant tvl2variant ( TVL  v)
static

Definition at line 145 of file qgsexpression.cpp.

Variable Documentation

TVL AND[3][3]
static
Initial value:
=
{
{ False, False, False },
{ False, True, Unknown },
{ False, Unknown, Unknown }
}

Definition at line 128 of file qgsexpression.cpp.

TVL NOT[3] = { True, False, Unknown }
static

Definition at line 143 of file qgsexpression.cpp.

TVL OR[3][3]
static
Initial value:

Definition at line 136 of file qgsexpression.cpp.