QGIS API Documentation  2.15.0-Master (02a0ebe)
Macros | Enumerations | Functions | Variables
qgsexpression.cpp File Reference
#include "qgsexpression.h"
#include <QtDebug>
#include <QDomDocument>
#include <QDate>
#include <QRegExp>
#include <QColor>
#include <QUuid>
#include <QMutex>
#include <math.h>
#include <limits>
#include "qgsdistancearea.h"
#include "qgsfeature.h"
#include "qgsgeometry.h"
#include "qgsgeometryengine.h"
#include "qgsgeometryutils.h"
#include "qgslogger.h"
#include "qgsmaplayerregistry.h"
#include "qgsogcutils.h"
#include "qgsvectorlayer.h"
#include "qgssymbollayerv2utils.h"
#include "qgsvectorcolorrampv2.h"
#include "qgsstylev2.h"
#include "qgsexpressioncontext.h"
#include "qgsproject.h"
#include "qgsstringutils.h"
#include "qgsgeometrycollectionv2.h"
#include "qgspointv2.h"
#include "qgspolygonv2.h"
#include "qgsmultipointv2.h"
#include "qgsmultilinestringv2.h"
#include "qgscurvepolygonv2.h"
#include "qgsexpressionprivate.h"
#include "qgsexpressionsorter.h"
#include "qgscrscache.h"
#include <qtextdocument.h>
Include dependency graph for qgsexpression.cpp:

Go to the source code of this file.

Macros

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

Enumerations

enum  TVL { False, True, Unknown }
 

Functions

static QVariant fcnAbs (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAcos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAge (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAggregate (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateCount (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateCountDistinct (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateCountMissing (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateGeneric (QgsAggregateCalculator::Aggregate aggregate, const QVariantList &values, QgsAggregateCalculator::AggregateParameters parameters, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateIQR (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMajority (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMax (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMaxLength (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMean (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMedian (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMin (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMinLength (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateMinority (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateQ1 (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateQ3 (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateRange (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateRelation (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateStdev (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateStringConcat (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnAggregateSum (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnArea (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAsin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAtan (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAtan2 (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAtlasCurrentFeature (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnAtlasCurrentGeometry (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnAtlasFeature (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnAtlasFeatureId (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnAtlasNumFeatures (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnAttribute (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnAzimuth (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBbox (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBounds (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBoundsHeight (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBoundsWidth (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnBuffer (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCeil (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCentroid (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnChar (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnClamp (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnClosestPoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCoalesce (const QVariantList &values, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnColorCmyk (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorHsl (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorHsv (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnColorRgb (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCombine (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnComposerNumPages (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnComposerPage (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnConcat (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnContains (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnConvexHull (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnCrosses (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDay (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDayOfWeek (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDegrees (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDifference (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDisjoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnDistance (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnEndPoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnEval (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnExp (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnExpScale (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnExteriorRing (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnExtrude (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFeature (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnFeatureId (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnFloor (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatDate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatNumber (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnFormatString (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomArea (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeometry (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnGeometryN (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomFromGML (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomFromWKT (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomLength (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeomM (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomNumGeometries (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomNumInteriorRings (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomNumPoints (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomNumRings (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomPerimeter (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnGeomToWKT (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomX (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomY (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGeomZ (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetFeature (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetGeometry (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetLayerProperty (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnGetVariable (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnHamming (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnHour (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIf (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnInteriorRingN (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIntersection (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIntersects (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnIsClosed (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLCS (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLeft (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLength (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLevenshtein (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLinearScale (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLn (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLog (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLog10 (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLower (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLPad (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMakeLine (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMakePoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMakePointM (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMakePolygon (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMapId (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMinute (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnMonth (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnNodesToPoints (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnNow (const QVariantList &, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnOrderParts (const QVariantList &values, const QgsExpressionContext *ctx, QgsExpression *parent)
 
static QVariant fcnOverlaps (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnPerimeter (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnPi (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnPointN (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnPointOnSurface (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnProject (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRadians (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
QVariant fcnRampColor (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpMatch (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpReplace (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRegexpSubstr (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRelate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnReplace (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnReverse (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRight (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRnd (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRndF (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRound (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnRowNumber (const QVariantList &, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant fcnRPad (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnScale (const QVariantList &, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSeconds (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSegmentsToLines (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnShortestLine (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSoundex (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSpecialColumn (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSqrt (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnStartPoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnStrpos (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSubstr (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnSymDifference (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTan (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTitle (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToDate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToDateTime (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToInt (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToInterval (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToReal (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToString (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnToTime (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTouches (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTransformGeometry (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTranslate (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnTrim (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnUpper (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnUuid (const QVariantList &, const QgsExpressionContext *, QgsExpression *)
 
static QVariant fcnWeek (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnWithin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnWordwrap (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnX (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnXat (const QVariantList &values, const QgsExpressionContext *f, QgsExpression *parent)
 
static QVariant fcnXMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnXMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnY (const QVariantList &, const QgsExpressionContext *context, QgsExpression *)
 
static QVariant fcnYat (const QVariantList &values, const QgsExpressionContext *f, QgsExpression *parent)
 
static QVariant fcnYear (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnYMax (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnYMin (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorCmyka (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorHsla (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorHsva (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorPart (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncColorRgba (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncDarker (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncLighter (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fncSetColorPart (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QDateTime getDateTimeValue (const QVariant &value, QgsExpression *parent)
 
static QDate getDateValue (const QVariant &value, QgsExpression *parent)
 
static double getDoubleValue (const QVariant &value, QgsExpression *parent)
 
static QgsFeature getFeature (const QVariant &value, QgsExpression *parent)
 
static QgsGeometry getGeometry (const QVariant &value, QgsExpression *parent)
 
static QgsInterval 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)
 
QgsVectorLayergetVectorLayer (const QVariant &value, QgsExpression *)
 
bool isDateTimeSafe (const QVariant &v)
 
bool isDoubleSafe (const QVariant &v)
 
bool isIntervalSafe (const QVariant &v)
 
bool isIntSafe (const QVariant &v)
 
bool isNull (const QVariant &v)
 
QgsExpression::NodeparseExpression (const QString &str, QString &parserErrorMsg)
 
static QVariant pointAt (const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
 
static QVariant tvl2variant (TVL v)
 

Variables

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

Macro Definition Documentation

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

Definition at line 1563 of file qgsexpression.cpp.

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

Definition at line 161 of file qgsexpression.cpp.

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

Definition at line 301 of file qgsexpression.cpp.

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

Definition at line 162 of file qgsexpression.cpp.

#define TVL_False   QVariant(0)

Definition at line 103 of file qgsexpression.cpp.

#define TVL_True   QVariant(1)

Definition at line 102 of file qgsexpression.cpp.

#define TVL_Unknown   QVariant()

Definition at line 104 of file qgsexpression.cpp.

Enumeration Type Documentation

enum TVL
Enumerator
False 
True 
Unknown 

Definition at line 64 of file qgsexpression.cpp.

Function Documentation

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

Definition at line 391 of file qgsexpression.cpp.

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

Definition at line 427 of file qgsexpression.cpp.

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

Definition at line 1435 of file qgsexpression.cpp.

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

Definition at line 594 of file qgsexpression.cpp.

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

Definition at line 862 of file qgsexpression.cpp.

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

Definition at line 867 of file qgsexpression.cpp.

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

Definition at line 872 of file qgsexpression.cpp.

static QVariant fcnAggregateGeneric ( QgsAggregateCalculator::Aggregate  aggregate,
const QVariantList &  values,
QgsAggregateCalculator::AggregateParameters  parameters,
const QgsExpressionContext context,
QgsExpression parent 
)
static

Definition at line 778 of file qgsexpression.cpp.

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

Definition at line 932 of file qgsexpression.cpp.

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

Definition at line 917 of file qgsexpression.cpp.

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

Definition at line 882 of file qgsexpression.cpp.

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

Definition at line 942 of file qgsexpression.cpp.

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

Definition at line 892 of file qgsexpression.cpp.

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

Definition at line 897 of file qgsexpression.cpp.

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

Definition at line 877 of file qgsexpression.cpp.

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

Definition at line 937 of file qgsexpression.cpp.

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

Definition at line 912 of file qgsexpression.cpp.

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

Definition at line 922 of file qgsexpression.cpp.

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

Definition at line 927 of file qgsexpression.cpp.

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

Definition at line 907 of file qgsexpression.cpp.

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

Definition at line 675 of file qgsexpression.cpp.

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

Definition at line 902 of file qgsexpression.cpp.

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

Definition at line 947 of file qgsexpression.cpp.

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

Definition at line 887 of file qgsexpression.cpp.

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

Definition at line 1999 of file qgsexpression.cpp.

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

Definition at line 422 of file qgsexpression.cpp.

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

Definition at line 432 of file qgsexpression.cpp.

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

Definition at line 437 of file qgsexpression.cpp.

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

Definition at line 1307 of file qgsexpression.cpp.

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

Definition at line 1317 of file qgsexpression.cpp.

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

Definition at line 1286 of file qgsexpression.cpp.

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

Definition at line 1296 of file qgsexpression.cpp.

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

Definition at line 1327 of file qgsexpression.cpp.

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

Definition at line 1351 of file qgsexpression.cpp.

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

Definition at line 2399 of file qgsexpression.cpp.

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

Definition at line 2217 of file qgsexpression.cpp.

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

Definition at line 2131 of file qgsexpression.cpp.

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

Definition at line 2146 of file qgsexpression.cpp.

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

Definition at line 2140 of file qgsexpression.cpp.

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

Definition at line 2265 of file qgsexpression.cpp.

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

Definition at line 991 of file qgsexpression.cpp.

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

Definition at line 2289 of file qgsexpression.cpp.

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

Definition at line 1081 of file qgsexpression.cpp.

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

Definition at line 964 of file qgsexpression.cpp.

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

Definition at line 2566 of file qgsexpression.cpp.

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

Definition at line 1015 of file qgsexpression.cpp.

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

Definition at line 2784 of file qgsexpression.cpp.

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

Definition at line 2704 of file qgsexpression.cpp.

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

Definition at line 2744 of file qgsexpression.cpp.

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

Definition at line 2637 of file qgsexpression.cpp.

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

Definition at line 2377 of file qgsexpression.cpp.

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

Definition at line 1266 of file qgsexpression.cpp.

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

Definition at line 1276 of file qgsexpression.cpp.

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

Definition at line 1358 of file qgsexpression.cpp.

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

Definition at line 2247 of file qgsexpression.cpp.

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

Definition at line 2305 of file qgsexpression.cpp.

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

Definition at line 412 of file qgsexpression.cpp.

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

Definition at line 2241 of file qgsexpression.cpp.

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

Definition at line 1457 of file qgsexpression.cpp.

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

Definition at line 1443 of file qgsexpression.cpp.

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

Definition at line 402 of file qgsexpression.cpp.

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

Definition at line 2313 of file qgsexpression.cpp.

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

Definition at line 2223 of file qgsexpression.cpp.

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

Definition at line 2353 of file qgsexpression.cpp.

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

Definition at line 1704 of file qgsexpression.cpp.

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

Definition at line 375 of file qgsexpression.cpp.

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

Definition at line 443 of file qgsexpression.cpp.

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

Definition at line 524 of file qgsexpression.cpp.

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

Definition at line 2338 of file qgsexpression.cpp.

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

Definition at line 2487 of file qgsexpression.cpp.

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

Definition at line 1344 of file qgsexpression.cpp.

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

Definition at line 1337 of file qgsexpression.cpp.

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

Definition at line 985 of file qgsexpression.cpp.

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

Definition at line 2630 of file qgsexpression.cpp.

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

Definition at line 2618 of file qgsexpression.cpp.

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

Definition at line 1404 of file qgsexpression.cpp.

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

Definition at line 1982 of file qgsexpression.cpp.

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

Definition at line 1956 of file qgsexpression.cpp.

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

Definition at line 1805 of file qgsexpression.cpp.

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

Definition at line 1973 of file qgsexpression.cpp.

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

Definition at line 1965 of file qgsexpression.cpp.

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

Definition at line 2009 of file qgsexpression.cpp.

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

Definition at line 1649 of file qgsexpression.cpp.

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

Definition at line 2060 of file qgsexpression.cpp.

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

Definition at line 2069 of file qgsexpression.cpp.

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

Definition at line 2054 of file qgsexpression.cpp.

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

Definition at line 2097 of file qgsexpression.cpp.

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

Definition at line 2026 of file qgsexpression.cpp.

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

Definition at line 2386 of file qgsexpression.cpp.

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

Definition at line 1594 of file qgsexpression.cpp.

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

Definition at line 1613 of file qgsexpression.cpp.

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

Definition at line 1632 of file qgsexpression.cpp.

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

Definition at line 2983 of file qgsexpression.cpp.

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

Definition at line 2954 of file qgsexpression.cpp.

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

Definition at line 3019 of file qgsexpression.cpp.

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

Definition at line 366 of file qgsexpression.cpp.

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

Definition at line 1067 of file qgsexpression.cpp.

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

Definition at line 1517 of file qgsexpression.cpp.

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

Definition at line 2652 of file qgsexpression.cpp.

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

Definition at line 1783 of file qgsexpression.cpp.

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

Definition at line 2359 of file qgsexpression.cpp.

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

Definition at line 2229 of file qgsexpression.cpp.

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

Definition at line 2176 of file qgsexpression.cpp.

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

Definition at line 1060 of file qgsexpression.cpp.

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

Definition at line 1381 of file qgsexpression.cpp.

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

Definition at line 1153 of file qgsexpression.cpp.

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

Definition at line 1053 of file qgsexpression.cpp.

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

Definition at line 492 of file qgsexpression.cpp.

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

Definition at line 448 of file qgsexpression.cpp.

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

Definition at line 462 of file qgsexpression.cpp.

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

Definition at line 455 of file qgsexpression.cpp.

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

Definition at line 1025 of file qgsexpression.cpp.

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

Definition at line 1396 of file qgsexpression.cpp.

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

Definition at line 1859 of file qgsexpression.cpp.

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

Definition at line 1827 of file qgsexpression.cpp.

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

Definition at line 1851 of file qgsexpression.cpp.

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

Definition at line 1888 of file qgsexpression.cpp.

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

Definition at line 1256 of file qgsexpression.cpp.

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

Definition at line 558 of file qgsexpression.cpp.

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

Definition at line 576 of file qgsexpression.cpp.

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

Definition at line 1532 of file qgsexpression.cpp.

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

Definition at line 1487 of file qgsexpression.cpp.

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

Definition at line 1721 of file qgsexpression.cpp.

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

Definition at line 1415 of file qgsexpression.cpp.

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

Definition at line 2502 of file qgsexpression.cpp.

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

Definition at line 2253 of file qgsexpression.cpp.

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

Definition at line 2043 of file qgsexpression.cpp.

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

Definition at line 2606 of file qgsexpression.cpp.

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

Definition at line 1666 of file qgsexpression.cpp.

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

Definition at line 2297 of file qgsexpression.cpp.

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

Definition at line 2468 of file qgsexpression.cpp.

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

Definition at line 397 of file qgsexpression.cpp.

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

Definition at line 2690 of file qgsexpression.cpp.

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

Definition at line 1193 of file qgsexpression.cpp.

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

Definition at line 1178 of file qgsexpression.cpp.

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

Definition at line 1207 of file qgsexpression.cpp.

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

Definition at line 2189 of file qgsexpression.cpp.

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

Definition at line 1171 of file qgsexpression.cpp.

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

Definition at line 2323 of file qgsexpression.cpp.

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

Definition at line 1374 of file qgsexpression.cpp.

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

Definition at line 481 of file qgsexpression.cpp.

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

Definition at line 470 of file qgsexpression.cpp.

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

Definition at line 2588 of file qgsexpression.cpp.

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

Definition at line 1245 of file qgsexpression.cpp.

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

Definition at line 1388 of file qgsexpression.cpp.

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

Definition at line 2613 of file qgsexpression.cpp.

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

Definition at line 1547 of file qgsexpression.cpp.

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

Definition at line 1756 of file qgsexpression.cpp.

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

Definition at line 2577 of file qgsexpression.cpp.

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

Definition at line 407 of file qgsexpression.cpp.

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

Definition at line 1075 of file qgsexpression.cpp.

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

Definition at line 2946 of file qgsexpression.cpp.

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

Definition at line 385 of file qgsexpression.cpp.

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

Definition at line 1687 of file qgsexpression.cpp.

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

Definition at line 1368 of file qgsexpression.cpp.

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

Definition at line 1237 of file qgsexpression.cpp.

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

Definition at line 2368 of file qgsexpression.cpp.

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

Definition at line 417 of file qgsexpression.cpp.

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

Definition at line 1035 of file qgsexpression.cpp.

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

Definition at line 1420 of file qgsexpression.cpp.

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

Definition at line 1010 of file qgsexpression.cpp.

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

Definition at line 997 of file qgsexpression.cpp.

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

Definition at line 1430 of file qgsexpression.cpp.

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

Definition at line 1001 of file qgsexpression.cpp.

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

Definition at line 1005 of file qgsexpression.cpp.

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

Definition at line 1425 of file qgsexpression.cpp.

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

Definition at line 2235 of file qgsexpression.cpp.

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

Definition at line 2963 of file qgsexpression.cpp.

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

Definition at line 2281 of file qgsexpression.cpp.

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

Definition at line 1047 of file qgsexpression.cpp.

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

Definition at line 1030 of file qgsexpression.cpp.

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

Definition at line 1232 of file qgsexpression.cpp.

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

Definition at line 1502 of file qgsexpression.cpp.

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

Definition at line 2259 of file qgsexpression.cpp.

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

Definition at line 1087 of file qgsexpression.cpp.

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

Definition at line 1566 of file qgsexpression.cpp.

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

Definition at line 1940 of file qgsexpression.cpp.

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

Definition at line 2158 of file qgsexpression.cpp.

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

Definition at line 2152 of file qgsexpression.cpp.

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

Definition at line 1580 of file qgsexpression.cpp.

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

Definition at line 1948 of file qgsexpression.cpp.

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

Definition at line 1472 of file qgsexpression.cpp.

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

Definition at line 2170 of file qgsexpression.cpp.

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

Definition at line 2164 of file qgsexpression.cpp.

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

Definition at line 2806 of file qgsexpression.cpp.

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

Definition at line 2724 of file qgsexpression.cpp.

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

Definition at line 2764 of file qgsexpression.cpp.

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

Definition at line 2828 of file qgsexpression.cpp.

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

Definition at line 2675 of file qgsexpression.cpp.

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

Definition at line 2918 of file qgsexpression.cpp.

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

Definition at line 2932 of file qgsexpression.cpp.

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

Definition at line 2871 of file qgsexpression.cpp.

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

Definition at line 218 of file qgsexpression.cpp.

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

Definition at line 238 of file qgsexpression.cpp.

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

Definition at line 191 of file qgsexpression.cpp.

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

Definition at line 292 of file qgsexpression.cpp.

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

Definition at line 283 of file qgsexpression.cpp.

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

Definition at line 266 of file qgsexpression.cpp.

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

Definition at line 203 of file qgsexpression.cpp.

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

Definition at line 304 of file qgsexpression.cpp.

static QString getStringValue ( const QVariant value,
QgsExpression  
)
static

Definition at line 186 of file qgsexpression.cpp.

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

Definition at line 252 of file qgsexpression.cpp.

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

Definition at line 331 of file qgsexpression.cpp.

QgsVectorLayer* getVectorLayer ( const QVariant value,
QgsExpression  
)

Definition at line 313 of file qgsexpression.cpp.

bool isDateTimeSafe ( const QVariant v)
inline

Definition at line 136 of file qgsexpression.cpp.

bool isDoubleSafe ( const QVariant v)
inline

Definition at line 119 of file qgsexpression.cpp.

bool isIntervalSafe ( const QVariant v)
inline

Definition at line 142 of file qgsexpression.cpp.

bool isIntSafe ( const QVariant v)
inline

Definition at line 109 of file qgsexpression.cpp.

bool isNull ( const QVariant v)
inline

Definition at line 156 of file qgsexpression.cpp.

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

Definition at line 1918 of file qgsexpression.cpp.

static QVariant tvl2variant ( TVL  v)
static

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

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

Definition at line 86 of file qgsexpression.cpp.

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

Definition at line 79 of file qgsexpression.cpp.