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 "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 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 fcnGetGeometry (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnHamming (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnHour (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnIf (const QVariantList &values, const QgsFeature *f, QgsExpression *parent)
 
static QVariant fcnIntersection (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnIntersects (const QVariantList &values, const QgsFeature *, QgsExpression *parent)
 
static QVariant fcnLCS (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 fcnLevenshtein (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 fcnSoundex (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 fcnTransformGeometry (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 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 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(); \
const QgsGeometry* g = f->constGeometry(); \
if (!g || g->type() != geomtype) return QVariant();
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:75

Definition at line 1047 of file qgsexpression.cpp.

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

Definition at line 208 of file qgsexpression.cpp.

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

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

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

Definition at line 405 of file qgsexpression.cpp.

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

Definition at line 933 of file qgsexpression.cpp.

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

Definition at line 400 of file qgsexpression.cpp.

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

Definition at line 410 of file qgsexpression.cpp.

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

Definition at line 415 of file qgsexpression.cpp.

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

Definition at line 849 of file qgsexpression.cpp.

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

Definition at line 1206 of file qgsexpression.cpp.

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

Definition at line 1156 of file qgsexpression.cpp.

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

Definition at line 1176 of file qgsexpression.cpp.

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

Definition at line 1170 of file qgsexpression.cpp.

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

Definition at line 1254 of file qgsexpression.cpp.

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

Definition at line 599 of file qgsexpression.cpp.

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

Definition at line 1270 of file qgsexpression.cpp.

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

Definition at line 572 of file qgsexpression.cpp.

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

Definition at line 623 of file qgsexpression.cpp.

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

Definition at line 1539 of file qgsexpression.cpp.

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

Definition at line 1459 of file qgsexpression.cpp.

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

Definition at line 1499 of file qgsexpression.cpp.

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

Definition at line 1392 of file qgsexpression.cpp.

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

Definition at line 1319 of file qgsexpression.cpp.

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

Definition at line 856 of file qgsexpression.cpp.

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

Definition at line 1236 of file qgsexpression.cpp.

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

Definition at line 1278 of file qgsexpression.cpp.

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

Definition at line 390 of file qgsexpression.cpp.

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

Definition at line 1230 of file qgsexpression.cpp.

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

Definition at line 941 of file qgsexpression.cpp.

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

Definition at line 1286 of file qgsexpression.cpp.

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

Definition at line 1212 of file qgsexpression.cpp.

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

Definition at line 1295 of file qgsexpression.cpp.

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

Definition at line 421 of file qgsexpression.cpp.

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

Definition at line 502 of file qgsexpression.cpp.

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

Definition at line 845 of file qgsexpression.cpp.

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

Definition at line 839 of file qgsexpression.cpp.

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

Definition at line 593 of file qgsexpression.cpp.

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

Definition at line 1385 of file qgsexpression.cpp.

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

Definition at line 1373 of file qgsexpression.cpp.

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

Definition at line 902 of file qgsexpression.cpp.

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

Definition at line 1137 of file qgsexpression.cpp.

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

Definition at line 1109 of file qgsexpression.cpp.

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

Definition at line 1126 of file qgsexpression.cpp.

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

Definition at line 1117 of file qgsexpression.cpp.

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

Definition at line 1143 of file qgsexpression.cpp.

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

Definition at line 1149 of file qgsexpression.cpp.

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

Definition at line 1328 of file qgsexpression.cpp.

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

Definition at line 1617 of file qgsexpression.cpp.

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

Definition at line 1589 of file qgsexpression.cpp.

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

Definition at line 675 of file qgsexpression.cpp.

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

Definition at line 1001 of file qgsexpression.cpp.

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

Definition at line 1407 of file qgsexpression.cpp.

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

Definition at line 1301 of file qgsexpression.cpp.

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

Definition at line 1218 of file qgsexpression.cpp.

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

Definition at line 668 of file qgsexpression.cpp.

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

Definition at line 879 of file qgsexpression.cpp.

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

Definition at line 755 of file qgsexpression.cpp.

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

Definition at line 661 of file qgsexpression.cpp.

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

Definition at line 470 of file qgsexpression.cpp.

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

Definition at line 426 of file qgsexpression.cpp.

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

Definition at line 440 of file qgsexpression.cpp.

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

Definition at line 433 of file qgsexpression.cpp.

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

Definition at line 633 of file qgsexpression.cpp.

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

Definition at line 894 of file qgsexpression.cpp.

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

Definition at line 536 of file qgsexpression.cpp.

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

Definition at line 554 of file qgsexpression.cpp.

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

Definition at line 1016 of file qgsexpression.cpp.

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

Definition at line 971 of file qgsexpression.cpp.

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

Definition at line 913 of file qgsexpression.cpp.

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

Definition at line 1242 of file qgsexpression.cpp.

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

Definition at line 1360 of file qgsexpression.cpp.

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

Definition at line 1445 of file qgsexpression.cpp.

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

Definition at line 782 of file qgsexpression.cpp.

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

Definition at line 767 of file qgsexpression.cpp.

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

Definition at line 796 of file qgsexpression.cpp.

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

Definition at line 760 of file qgsexpression.cpp.

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

Definition at line 872 of file qgsexpression.cpp.

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

Definition at line 459 of file qgsexpression.cpp.

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

Definition at line 448 of file qgsexpression.cpp.

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

Definition at line 1341 of file qgsexpression.cpp.

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

Definition at line 834 of file qgsexpression.cpp.

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

Definition at line 886 of file qgsexpression.cpp.

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

Definition at line 1368 of file qgsexpression.cpp.

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

Definition at line 1031 of file qgsexpression.cpp.

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

Definition at line 385 of file qgsexpression.cpp.

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

Definition at line 683 of file qgsexpression.cpp.

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

Definition at line 1583 of file qgsexpression.cpp.

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

Definition at line 373 of file qgsexpression.cpp.

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

Definition at line 866 of file qgsexpression.cpp.

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

Definition at line 826 of file qgsexpression.cpp.

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

Definition at line 1310 of file qgsexpression.cpp.

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

Definition at line 395 of file qgsexpression.cpp.

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

Definition at line 643 of file qgsexpression.cpp.

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

Definition at line 918 of file qgsexpression.cpp.

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

Definition at line 618 of file qgsexpression.cpp.

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

Definition at line 605 of file qgsexpression.cpp.

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

Definition at line 928 of file qgsexpression.cpp.

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

Definition at line 609 of file qgsexpression.cpp.

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

Definition at line 613 of file qgsexpression.cpp.

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

Definition at line 923 of file qgsexpression.cpp.

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

Definition at line 1224 of file qgsexpression.cpp.

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

Definition at line 1598 of file qgsexpression.cpp.

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

Definition at line 655 of file qgsexpression.cpp.

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

Definition at line 638 of file qgsexpression.cpp.

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

Definition at line 821 of file qgsexpression.cpp.

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

Definition at line 986 of file qgsexpression.cpp.

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

Definition at line 1248 of file qgsexpression.cpp.

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

Definition at line 689 of file qgsexpression.cpp.

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

Definition at line 1052 of file qgsexpression.cpp.

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

Definition at line 1093 of file qgsexpression.cpp.

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

Definition at line 1188 of file qgsexpression.cpp.

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

Definition at line 1182 of file qgsexpression.cpp.

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

Definition at line 1064 of file qgsexpression.cpp.

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

Definition at line 1101 of file qgsexpression.cpp.

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

Definition at line 956 of file qgsexpression.cpp.

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

Definition at line 1200 of file qgsexpression.cpp.

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

Definition at line 1194 of file qgsexpression.cpp.

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

Definition at line 1561 of file qgsexpression.cpp.

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

Definition at line 1479 of file qgsexpression.cpp.

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

Definition at line 1519 of file qgsexpression.cpp.

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

Definition at line 1430 of file qgsexpression.cpp.

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

Definition at line 265 of file qgsexpression.cpp.

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

Definition at line 279 of file qgsexpression.cpp.

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

Definition at line 238 of file qgsexpression.cpp.

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

Definition at line 333 of file qgsexpression.cpp.

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

Definition at line 324 of file qgsexpression.cpp.

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

Definition at line 307 of file qgsexpression.cpp.

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

Definition at line 250 of file qgsexpression.cpp.

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

Definition at line 342 of file qgsexpression.cpp.

static QString getStringValue ( const QVariant value,
QgsExpression  
)
static

Definition at line 233 of file qgsexpression.cpp.

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

Definition at line 293 of file qgsexpression.cpp.

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

Definition at line 352 of file qgsexpression.cpp.

bool isDateTimeSafe ( const QVariant v)
inline

Definition at line 183 of file qgsexpression.cpp.

bool isDoubleSafe ( const QVariant v)
inline

Definition at line 172 of file qgsexpression.cpp.

bool isIntervalSafe ( const QVariant v)
inline

Definition at line 189 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 203 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 1077 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.