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 1053 of file qgsexpression.cpp.

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

Definition at line 214 of file qgsexpression.cpp.

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

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

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

Definition at line 411 of file qgsexpression.cpp.

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

Definition at line 939 of file qgsexpression.cpp.

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

Definition at line 406 of file qgsexpression.cpp.

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

Definition at line 416 of file qgsexpression.cpp.

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

Definition at line 421 of file qgsexpression.cpp.

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

Definition at line 855 of file qgsexpression.cpp.

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

Definition at line 1212 of file qgsexpression.cpp.

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

Definition at line 1162 of file qgsexpression.cpp.

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

Definition at line 1182 of file qgsexpression.cpp.

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

Definition at line 1176 of file qgsexpression.cpp.

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

Definition at line 1260 of file qgsexpression.cpp.

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

Definition at line 605 of file qgsexpression.cpp.

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

Definition at line 1276 of file qgsexpression.cpp.

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

Definition at line 578 of file qgsexpression.cpp.

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

Definition at line 629 of file qgsexpression.cpp.

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

Definition at line 1545 of file qgsexpression.cpp.

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

Definition at line 1465 of file qgsexpression.cpp.

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

Definition at line 1505 of file qgsexpression.cpp.

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

Definition at line 1398 of file qgsexpression.cpp.

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

Definition at line 1325 of file qgsexpression.cpp.

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

Definition at line 862 of file qgsexpression.cpp.

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

Definition at line 1242 of file qgsexpression.cpp.

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

Definition at line 1284 of file qgsexpression.cpp.

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

Definition at line 396 of file qgsexpression.cpp.

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

Definition at line 1236 of file qgsexpression.cpp.

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

Definition at line 947 of file qgsexpression.cpp.

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

Definition at line 1292 of file qgsexpression.cpp.

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

Definition at line 1218 of file qgsexpression.cpp.

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

Definition at line 1301 of file qgsexpression.cpp.

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

Definition at line 427 of file qgsexpression.cpp.

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

Definition at line 508 of file qgsexpression.cpp.

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

Definition at line 851 of file qgsexpression.cpp.

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

Definition at line 845 of file qgsexpression.cpp.

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

Definition at line 599 of file qgsexpression.cpp.

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

Definition at line 1391 of file qgsexpression.cpp.

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

Definition at line 1379 of file qgsexpression.cpp.

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

Definition at line 908 of file qgsexpression.cpp.

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

Definition at line 1143 of file qgsexpression.cpp.

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

Definition at line 1115 of file qgsexpression.cpp.

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

Definition at line 1132 of file qgsexpression.cpp.

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

Definition at line 1123 of file qgsexpression.cpp.

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

Definition at line 1149 of file qgsexpression.cpp.

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

Definition at line 1155 of file qgsexpression.cpp.

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

Definition at line 1334 of file qgsexpression.cpp.

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

Definition at line 1623 of file qgsexpression.cpp.

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

Definition at line 1595 of file qgsexpression.cpp.

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

Definition at line 681 of file qgsexpression.cpp.

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

Definition at line 1007 of file qgsexpression.cpp.

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

Definition at line 1413 of file qgsexpression.cpp.

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

Definition at line 1307 of file qgsexpression.cpp.

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

Definition at line 1224 of file qgsexpression.cpp.

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

Definition at line 674 of file qgsexpression.cpp.

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

Definition at line 885 of file qgsexpression.cpp.

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

Definition at line 761 of file qgsexpression.cpp.

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

Definition at line 667 of file qgsexpression.cpp.

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

Definition at line 476 of file qgsexpression.cpp.

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

Definition at line 432 of file qgsexpression.cpp.

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

Definition at line 446 of file qgsexpression.cpp.

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

Definition at line 439 of file qgsexpression.cpp.

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

Definition at line 639 of file qgsexpression.cpp.

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

Definition at line 900 of file qgsexpression.cpp.

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

Definition at line 542 of file qgsexpression.cpp.

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

Definition at line 560 of file qgsexpression.cpp.

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

Definition at line 1022 of file qgsexpression.cpp.

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

Definition at line 977 of file qgsexpression.cpp.

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

Definition at line 919 of file qgsexpression.cpp.

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

Definition at line 1248 of file qgsexpression.cpp.

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

Definition at line 1366 of file qgsexpression.cpp.

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

Definition at line 1451 of file qgsexpression.cpp.

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

Definition at line 788 of file qgsexpression.cpp.

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

Definition at line 773 of file qgsexpression.cpp.

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

Definition at line 802 of file qgsexpression.cpp.

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

Definition at line 766 of file qgsexpression.cpp.

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

Definition at line 878 of file qgsexpression.cpp.

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

Definition at line 465 of file qgsexpression.cpp.

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

Definition at line 454 of file qgsexpression.cpp.

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

Definition at line 1347 of file qgsexpression.cpp.

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

Definition at line 840 of file qgsexpression.cpp.

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

Definition at line 892 of file qgsexpression.cpp.

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

Definition at line 1374 of file qgsexpression.cpp.

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

Definition at line 1037 of file qgsexpression.cpp.

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

Definition at line 391 of file qgsexpression.cpp.

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

Definition at line 689 of file qgsexpression.cpp.

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

Definition at line 1589 of file qgsexpression.cpp.

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

Definition at line 379 of file qgsexpression.cpp.

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

Definition at line 872 of file qgsexpression.cpp.

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

Definition at line 832 of file qgsexpression.cpp.

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

Definition at line 1316 of file qgsexpression.cpp.

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

Definition at line 401 of file qgsexpression.cpp.

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

Definition at line 649 of file qgsexpression.cpp.

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

Definition at line 924 of file qgsexpression.cpp.

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

Definition at line 624 of file qgsexpression.cpp.

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

Definition at line 611 of file qgsexpression.cpp.

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

Definition at line 934 of file qgsexpression.cpp.

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

Definition at line 615 of file qgsexpression.cpp.

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

Definition at line 619 of file qgsexpression.cpp.

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

Definition at line 929 of file qgsexpression.cpp.

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

Definition at line 1230 of file qgsexpression.cpp.

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

Definition at line 1604 of file qgsexpression.cpp.

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

Definition at line 661 of file qgsexpression.cpp.

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

Definition at line 644 of file qgsexpression.cpp.

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

Definition at line 827 of file qgsexpression.cpp.

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

Definition at line 992 of file qgsexpression.cpp.

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

Definition at line 1254 of file qgsexpression.cpp.

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

Definition at line 695 of file qgsexpression.cpp.

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

Definition at line 1058 of file qgsexpression.cpp.

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

Definition at line 1099 of file qgsexpression.cpp.

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

Definition at line 1194 of file qgsexpression.cpp.

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

Definition at line 1188 of file qgsexpression.cpp.

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

Definition at line 1070 of file qgsexpression.cpp.

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

Definition at line 1107 of file qgsexpression.cpp.

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

Definition at line 962 of file qgsexpression.cpp.

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

Definition at line 1206 of file qgsexpression.cpp.

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

Definition at line 1200 of file qgsexpression.cpp.

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

Definition at line 1567 of file qgsexpression.cpp.

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

Definition at line 1485 of file qgsexpression.cpp.

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

Definition at line 1525 of file qgsexpression.cpp.

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

Definition at line 1436 of file qgsexpression.cpp.

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

Definition at line 271 of file qgsexpression.cpp.

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

Definition at line 285 of file qgsexpression.cpp.

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

Definition at line 244 of file qgsexpression.cpp.

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

Definition at line 339 of file qgsexpression.cpp.

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

Definition at line 330 of file qgsexpression.cpp.

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

Definition at line 313 of file qgsexpression.cpp.

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

Definition at line 256 of file qgsexpression.cpp.

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

Definition at line 348 of file qgsexpression.cpp.

static QString getStringValue ( const QVariant value,
QgsExpression  
)
static

Definition at line 239 of file qgsexpression.cpp.

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

Definition at line 299 of file qgsexpression.cpp.

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

Definition at line 358 of file qgsexpression.cpp.

bool isDateTimeSafe ( const QVariant v)
inline

Definition at line 189 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 195 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 209 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 1083 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.