QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Enumerations | Functions | Variables
qgsexpression.cpp File Reference
#include "qgsexpression.h"
#include <QtDebug>
#include <QDomDocument>
#include <QSettings>
#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 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 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 QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAcos (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAge (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAsin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAtan (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAtan2 (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnAttribute (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnBbox (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnBounds (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnBoundsHeight (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnBoundsWidth (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnBuffer (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCeil (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCentroid (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnClamp (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCoalesce (const QVariantList &values, const QgsFeature *, QgsExpression *)
 
static QVariant fcnColorCmyk (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnColorHsl (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnColorHsv (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnColorRgb (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCombine (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnConcat (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnContains (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnConvexHull (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCos (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnCrosses (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnDay (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnDifference (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnDisjoint (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnDistance (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnExp (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnExpScale (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnFeature (const QVariantList &, const QgsFeature *f, QgsExpression *)
 
static QVariant fcnFeatureId (const QVariantList &, const QgsFeature *f, QgsExpression *)
 
static QVariant fcnFloor (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnFormatDate (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnFormatNumber (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnFormatString (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnGeomArea (const QVariantList &, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnGeometry (const QVariantList &, const QgsFeature *f, QgsExpression *)
 
static QVariant fcnGeomFromGML (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnGeomFromWKT (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnGeomLength (const QVariantList &, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnGeomPerimeter (const QVariantList &, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnGeomToWKT (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnGetFeature (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnHour (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnIntersection (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnIntersects (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLeft (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLength (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLinearScale (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLn (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLog (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLog10 (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLower (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLPad (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnMax (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnMin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnMinute (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnMonth (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnNow (const QVariantList &, const QgsFeature *, QgsExpression *)
 
static QVariant fcnOverlaps (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnPi (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
 
QVariant fcnRampColor (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRegexpMatch (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRegexpReplace (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRegexpSubstr (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnReplace (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRight (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRnd (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRndF (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRound (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnRowNumber (const QVariantList &, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnRPad (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnScale (const QVariantList &, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSeconds (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSpecialColumn (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSqrt (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnStrpos (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSubstr (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnSymDifference (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnTan (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnTitle (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToDate (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToDateTime (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToInt (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToInterval (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToReal (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToString (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnToTime (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnTouches (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnTrim (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnUpper (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnUuid (const QVariantList &, const QgsFeature *, QgsExpression *)
 
static QVariant fcnWeek (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnWithin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnWordwrap (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnX (const QVariantList &, const QgsFeature *f, QgsExpression *)
 
static QVariant fcnXat (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnXMax (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnXMin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnY (const QVariantList &, const QgsFeature *f, QgsExpression *)
 
static QVariant fcnYat (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnYear (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnYMax (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnYMin (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fncColorCmyka (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fncColorHsla (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fncColorHsva (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fncColorRgba (const QVariantList &values, const QgsFeature *, 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 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 QgsFeature *f, 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:
if (!f) return QVariant(); \
QgsGeometry* g = f->geometry(); \
if (!g || g->type() != geomtype) return QVariant();

Definition at line 1001 of file qgsexpression.cpp.

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

Definition at line 201 of file qgsexpression.cpp.

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

Definition at line 202 of file qgsexpression.cpp.

#define TVL_False   QVariant(0)

Definition at line 156 of file qgsexpression.cpp.

#define TVL_True   QVariant(1)

Definition at line 155 of file qgsexpression.cpp.

#define TVL_Unknown   QVariant()

Definition at line 157 of file qgsexpression.cpp.

Enumeration Type Documentation

enum TVL
Enumerator
False 
True 
Unknown 

Definition at line 119 of file qgsexpression.cpp.

Function Documentation

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

Definition at line 361 of file qgsexpression.cpp.

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

Definition at line 387 of file qgsexpression.cpp.

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

Definition at line 887 of file qgsexpression.cpp.

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

Definition at line 382 of file qgsexpression.cpp.

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

Definition at line 392 of file qgsexpression.cpp.

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

Definition at line 397 of file qgsexpression.cpp.

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

Definition at line 803 of file qgsexpression.cpp.

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

Definition at line 1160 of file qgsexpression.cpp.

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

Definition at line 1110 of file qgsexpression.cpp.

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

Definition at line 1130 of file qgsexpression.cpp.

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

Definition at line 1124 of file qgsexpression.cpp.

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

Definition at line 1208 of file qgsexpression.cpp.

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

Definition at line 581 of file qgsexpression.cpp.

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

Definition at line 1224 of file qgsexpression.cpp.

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

Definition at line 554 of file qgsexpression.cpp.

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

Definition at line 605 of file qgsexpression.cpp.

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

Definition at line 1459 of file qgsexpression.cpp.

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

Definition at line 1379 of file qgsexpression.cpp.

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

Definition at line 1419 of file qgsexpression.cpp.

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

Definition at line 1335 of file qgsexpression.cpp.

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

Definition at line 1273 of file qgsexpression.cpp.

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

Definition at line 810 of file qgsexpression.cpp.

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

Definition at line 1190 of file qgsexpression.cpp.

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

Definition at line 1232 of file qgsexpression.cpp.

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

Definition at line 372 of file qgsexpression.cpp.

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

Definition at line 1184 of file qgsexpression.cpp.

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

Definition at line 895 of file qgsexpression.cpp.

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

Definition at line 1240 of file qgsexpression.cpp.

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

Definition at line 1166 of file qgsexpression.cpp.

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

Definition at line 1249 of file qgsexpression.cpp.

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

Definition at line 403 of file qgsexpression.cpp.

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

Definition at line 484 of file qgsexpression.cpp.

static QVariant fcnFeature ( const QVariantList &  ,
const QgsFeature f,
QgsExpression  
)
static

Definition at line 799 of file qgsexpression.cpp.

static QVariant fcnFeatureId ( const QVariantList &  ,
const QgsFeature f,
QgsExpression  
)
static

Definition at line 793 of file qgsexpression.cpp.

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

Definition at line 575 of file qgsexpression.cpp.

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

Definition at line 1328 of file qgsexpression.cpp.

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

Definition at line 1321 of file qgsexpression.cpp.

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

Definition at line 856 of file qgsexpression.cpp.

static QVariant fcnGeomArea ( const QVariantList &  ,
const QgsFeature f,
QgsExpression parent 
)
static

Definition at line 1091 of file qgsexpression.cpp.

static QVariant fcnGeometry ( const QVariantList &  ,
const QgsFeature f,
QgsExpression  
)
static

Definition at line 1063 of file qgsexpression.cpp.

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

Definition at line 1080 of file qgsexpression.cpp.

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

Definition at line 1071 of file qgsexpression.cpp.

static QVariant fcnGeomLength ( const QVariantList &  ,
const QgsFeature f,
QgsExpression parent 
)
static

Definition at line 1097 of file qgsexpression.cpp.

static QVariant fcnGeomPerimeter ( const QVariantList &  ,
const QgsFeature f,
QgsExpression parent 
)
static

Definition at line 1103 of file qgsexpression.cpp.

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

Definition at line 1282 of file qgsexpression.cpp.

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

Definition at line 1509 of file qgsexpression.cpp.

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

Definition at line 955 of file qgsexpression.cpp.

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

Definition at line 1255 of file qgsexpression.cpp.

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

Definition at line 1172 of file qgsexpression.cpp.

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

Definition at line 833 of file qgsexpression.cpp.

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

Definition at line 709 of file qgsexpression.cpp.

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

Definition at line 452 of file qgsexpression.cpp.

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

Definition at line 408 of file qgsexpression.cpp.

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

Definition at line 422 of file qgsexpression.cpp.

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

Definition at line 415 of file qgsexpression.cpp.

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

Definition at line 615 of file qgsexpression.cpp.

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

Definition at line 848 of file qgsexpression.cpp.

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

Definition at line 518 of file qgsexpression.cpp.

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

Definition at line 536 of file qgsexpression.cpp.

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

Definition at line 970 of file qgsexpression.cpp.

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

Definition at line 925 of file qgsexpression.cpp.

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

Definition at line 867 of file qgsexpression.cpp.

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

Definition at line 1196 of file qgsexpression.cpp.

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

Definition at line 1308 of file qgsexpression.cpp.

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

Definition at line 1365 of file qgsexpression.cpp.

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

Definition at line 736 of file qgsexpression.cpp.

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

Definition at line 721 of file qgsexpression.cpp.

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

Definition at line 750 of file qgsexpression.cpp.

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

Definition at line 714 of file qgsexpression.cpp.

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

Definition at line 826 of file qgsexpression.cpp.

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

Definition at line 441 of file qgsexpression.cpp.

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

Definition at line 430 of file qgsexpression.cpp.

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

Definition at line 1289 of file qgsexpression.cpp.

static QVariant fcnRowNumber ( const QVariantList &  ,
const QgsFeature ,
QgsExpression parent 
)
static

Definition at line 788 of file qgsexpression.cpp.

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

Definition at line 840 of file qgsexpression.cpp.

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

Definition at line 1316 of file qgsexpression.cpp.

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

Definition at line 985 of file qgsexpression.cpp.

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

Definition at line 367 of file qgsexpression.cpp.

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

Definition at line 1503 of file qgsexpression.cpp.

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

Definition at line 355 of file qgsexpression.cpp.

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

Definition at line 820 of file qgsexpression.cpp.

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

Definition at line 780 of file qgsexpression.cpp.

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

Definition at line 1264 of file qgsexpression.cpp.

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

Definition at line 377 of file qgsexpression.cpp.

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

Definition at line 625 of file qgsexpression.cpp.

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

Definition at line 872 of file qgsexpression.cpp.

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

Definition at line 600 of file qgsexpression.cpp.

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

Definition at line 587 of file qgsexpression.cpp.

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

Definition at line 882 of file qgsexpression.cpp.

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

Definition at line 591 of file qgsexpression.cpp.

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

Definition at line 595 of file qgsexpression.cpp.

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

Definition at line 877 of file qgsexpression.cpp.

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

Definition at line 1178 of file qgsexpression.cpp.

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

Definition at line 637 of file qgsexpression.cpp.

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

Definition at line 620 of file qgsexpression.cpp.

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

Definition at line 775 of file qgsexpression.cpp.

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

Definition at line 940 of file qgsexpression.cpp.

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

Definition at line 1202 of file qgsexpression.cpp.

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

Definition at line 643 of file qgsexpression.cpp.

static QVariant fcnX ( const QVariantList &  ,
const QgsFeature f,
QgsExpression  
)
static

Definition at line 1006 of file qgsexpression.cpp.

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

Definition at line 1047 of file qgsexpression.cpp.

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

Definition at line 1142 of file qgsexpression.cpp.

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

Definition at line 1136 of file qgsexpression.cpp.

static QVariant fcnY ( const QVariantList &  ,
const QgsFeature f,
QgsExpression  
)
static

Definition at line 1018 of file qgsexpression.cpp.

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

Definition at line 1055 of file qgsexpression.cpp.

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

Definition at line 910 of file qgsexpression.cpp.

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

Definition at line 1154 of file qgsexpression.cpp.

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

Definition at line 1148 of file qgsexpression.cpp.

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

Definition at line 1481 of file qgsexpression.cpp.

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

Definition at line 1399 of file qgsexpression.cpp.

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

Definition at line 1439 of file qgsexpression.cpp.

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

Definition at line 1350 of file qgsexpression.cpp.

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

Definition at line 256 of file qgsexpression.cpp.

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

Definition at line 270 of file qgsexpression.cpp.

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

Definition at line 229 of file qgsexpression.cpp.

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

Definition at line 324 of file qgsexpression.cpp.

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

Definition at line 315 of file qgsexpression.cpp.

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

Definition at line 298 of file qgsexpression.cpp.

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

Definition at line 241 of file qgsexpression.cpp.

static QString getStringValue ( const QVariant &  value,
QgsExpression  
)
static

Definition at line 224 of file qgsexpression.cpp.

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

Definition at line 284 of file qgsexpression.cpp.

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

Definition at line 334 of file qgsexpression.cpp.

bool isDateTimeSafe ( const QVariant &  v)
inline

Definition at line 176 of file qgsexpression.cpp.

bool isDoubleSafe ( const QVariant &  v)
inline

Definition at line 169 of file qgsexpression.cpp.

bool isIntervalSafe ( const QVariant &  v)
inline

Definition at line 182 of file qgsexpression.cpp.

bool isIntSafe ( const QVariant &  v)
inline

Definition at line 162 of file qgsexpression.cpp.

bool isNull ( const QVariant &  v)
inline

Definition at line 196 of file qgsexpression.cpp.

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

Definition at line 1031 of file qgsexpression.cpp.

static QVariant tvl2variant ( TVL  v)
static

Definition at line 143 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 126 of file qgsexpression.cpp.

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

Definition at line 141 of file qgsexpression.cpp.

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

Definition at line 134 of file qgsexpression.cpp.