QGIS API Documentation  2.17.0-Master (0497e4a)
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 "qgsmessagelog.h"
#include "qgscsexception.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 fcnAngleAtVertex (const QVariantList &values, const QgsExpressionContext *, 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 fcnBoundary (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 fcnDistanceToVertex (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 fcnLineInterpolateAngle (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLineInterpolatePoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLineLocatePoint (const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent)
 
static QVariant fcnLineMerge (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

§ ENSURE_GEOM_TYPE

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

Definition at line 1565 of file qgsexpression.cpp.

§ ENSURE_NO_EVAL_ERROR

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

Definition at line 163 of file qgsexpression.cpp.

§ FEAT_FROM_CONTEXT

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

§ SET_EVAL_ERROR

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

Definition at line 164 of file qgsexpression.cpp.

§ TVL_False

#define TVL_False   QVariant(0)

Definition at line 105 of file qgsexpression.cpp.

§ TVL_True

#define TVL_True   QVariant(1)

Definition at line 104 of file qgsexpression.cpp.

§ TVL_Unknown

#define TVL_Unknown   QVariant()

Definition at line 106 of file qgsexpression.cpp.

Enumeration Type Documentation

§ TVL

enum TVL
Enumerator
False 
True 
Unknown 

Definition at line 66 of file qgsexpression.cpp.

Function Documentation

§ fcnAbs()

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

Definition at line 393 of file qgsexpression.cpp.

§ fcnAcos()

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

Definition at line 429 of file qgsexpression.cpp.

§ fcnAge()

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

Definition at line 1437 of file qgsexpression.cpp.

§ fcnAggregate()

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

Definition at line 596 of file qgsexpression.cpp.

§ fcnAggregateCount()

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

Definition at line 864 of file qgsexpression.cpp.

§ fcnAggregateCountDistinct()

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

Definition at line 869 of file qgsexpression.cpp.

§ fcnAggregateCountMissing()

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

Definition at line 874 of file qgsexpression.cpp.

§ fcnAggregateGeneric()

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

Definition at line 780 of file qgsexpression.cpp.

§ fcnAggregateIQR()

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

Definition at line 934 of file qgsexpression.cpp.

§ fcnAggregateMajority()

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

Definition at line 919 of file qgsexpression.cpp.

§ fcnAggregateMax()

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

Definition at line 884 of file qgsexpression.cpp.

§ fcnAggregateMaxLength()

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

Definition at line 944 of file qgsexpression.cpp.

§ fcnAggregateMean()

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

Definition at line 894 of file qgsexpression.cpp.

§ fcnAggregateMedian()

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

Definition at line 899 of file qgsexpression.cpp.

§ fcnAggregateMin()

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

Definition at line 879 of file qgsexpression.cpp.

§ fcnAggregateMinLength()

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

Definition at line 939 of file qgsexpression.cpp.

§ fcnAggregateMinority()

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

Definition at line 914 of file qgsexpression.cpp.

§ fcnAggregateQ1()

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

Definition at line 924 of file qgsexpression.cpp.

§ fcnAggregateQ3()

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

Definition at line 929 of file qgsexpression.cpp.

§ fcnAggregateRange()

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

Definition at line 909 of file qgsexpression.cpp.

§ fcnAggregateRelation()

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

Definition at line 677 of file qgsexpression.cpp.

§ fcnAggregateStdev()

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

Definition at line 904 of file qgsexpression.cpp.

§ fcnAggregateStringConcat()

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

Definition at line 949 of file qgsexpression.cpp.

§ fcnAggregateSum()

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

Definition at line 889 of file qgsexpression.cpp.

§ fcnAngleAtVertex()

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

Definition at line 2638 of file qgsexpression.cpp.

§ fcnArea()

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

Definition at line 2029 of file qgsexpression.cpp.

§ fcnAsin()

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

Definition at line 424 of file qgsexpression.cpp.

§ fcnAtan()

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

Definition at line 434 of file qgsexpression.cpp.

§ fcnAtan2()

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

Definition at line 439 of file qgsexpression.cpp.

§ fcnAtlasCurrentFeature()

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

Definition at line 1309 of file qgsexpression.cpp.

§ fcnAtlasCurrentGeometry()

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

Definition at line 1319 of file qgsexpression.cpp.

§ fcnAtlasFeature()

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

Definition at line 1288 of file qgsexpression.cpp.

§ fcnAtlasFeatureId()

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

Definition at line 1298 of file qgsexpression.cpp.

§ fcnAtlasNumFeatures()

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

Definition at line 1329 of file qgsexpression.cpp.

§ fcnAttribute()

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

Definition at line 1353 of file qgsexpression.cpp.

§ fcnAzimuth()

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

Definition at line 2429 of file qgsexpression.cpp.

§ fcnBbox()

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

Definition at line 2247 of file qgsexpression.cpp.

§ fcnBoundary()

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

Definition at line 1829 of file qgsexpression.cpp.

§ fcnBounds()

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

Definition at line 2161 of file qgsexpression.cpp.

§ fcnBoundsHeight()

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

Definition at line 2176 of file qgsexpression.cpp.

§ fcnBoundsWidth()

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

Definition at line 2170 of file qgsexpression.cpp.

§ fcnBuffer()

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

Definition at line 2295 of file qgsexpression.cpp.

§ fcnCeil()

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

Definition at line 993 of file qgsexpression.cpp.

§ fcnCentroid()

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

Definition at line 2319 of file qgsexpression.cpp.

§ fcnChar()

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

Definition at line 1083 of file qgsexpression.cpp.

§ fcnClamp()

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

Definition at line 966 of file qgsexpression.cpp.

§ fcnClosestPoint()

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

Definition at line 2596 of file qgsexpression.cpp.

§ fcnCoalesce()

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

Definition at line 1017 of file qgsexpression.cpp.

§ fcnColorCmyk()

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

Definition at line 2860 of file qgsexpression.cpp.

§ fcnColorHsl()

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

Definition at line 2780 of file qgsexpression.cpp.

§ fcnColorHsv()

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

Definition at line 2820 of file qgsexpression.cpp.

§ fcnColorRgb()

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

Definition at line 2713 of file qgsexpression.cpp.

§ fcnCombine()

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

Definition at line 2407 of file qgsexpression.cpp.

§ fcnComposerNumPages()

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

Definition at line 1268 of file qgsexpression.cpp.

§ fcnComposerPage()

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

Definition at line 1278 of file qgsexpression.cpp.

§ fcnConcat()

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

Definition at line 1360 of file qgsexpression.cpp.

§ fcnContains()

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

Definition at line 2277 of file qgsexpression.cpp.

§ fcnConvexHull()

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

Definition at line 2335 of file qgsexpression.cpp.

§ fcnCos()

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

Definition at line 414 of file qgsexpression.cpp.

§ fcnCrosses()

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

Definition at line 2271 of file qgsexpression.cpp.

§ fcnDay()

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

Definition at line 1459 of file qgsexpression.cpp.

§ fcnDayOfWeek()

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

Definition at line 1445 of file qgsexpression.cpp.

§ fcnDegrees()

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

Definition at line 404 of file qgsexpression.cpp.

§ fcnDifference()

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

Definition at line 2343 of file qgsexpression.cpp.

§ fcnDisjoint()

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

Definition at line 2253 of file qgsexpression.cpp.

§ fcnDistance()

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

Definition at line 2383 of file qgsexpression.cpp.

§ fcnDistanceToVertex()

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

Definition at line 2646 of file qgsexpression.cpp.

§ fcnEndPoint()

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

Definition at line 1706 of file qgsexpression.cpp.

§ fcnEval()

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

Definition at line 377 of file qgsexpression.cpp.

§ fcnExp()

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

Definition at line 445 of file qgsexpression.cpp.

§ fcnExpScale()

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

Definition at line 526 of file qgsexpression.cpp.

§ fcnExteriorRing()

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

Definition at line 2368 of file qgsexpression.cpp.

§ fcnExtrude()

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

Definition at line 2517 of file qgsexpression.cpp.

§ fcnFeature()

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

Definition at line 1346 of file qgsexpression.cpp.

§ fcnFeatureId()

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

Definition at line 1339 of file qgsexpression.cpp.

§ fcnFloor()

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

Definition at line 987 of file qgsexpression.cpp.

§ fcnFormatDate()

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

Definition at line 2706 of file qgsexpression.cpp.

§ fcnFormatNumber()

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

Definition at line 2694 of file qgsexpression.cpp.

§ fcnFormatString()

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

Definition at line 1406 of file qgsexpression.cpp.

§ fcnGeomArea()

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

Definition at line 2012 of file qgsexpression.cpp.

§ fcnGeometry()

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

Definition at line 1986 of file qgsexpression.cpp.

§ fcnGeometryN()

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

Definition at line 1807 of file qgsexpression.cpp.

§ fcnGeomFromGML()

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

Definition at line 2003 of file qgsexpression.cpp.

§ fcnGeomFromWKT()

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

Definition at line 1995 of file qgsexpression.cpp.

§ fcnGeomLength()

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

Definition at line 2039 of file qgsexpression.cpp.

§ fcnGeomM()

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

Definition at line 1651 of file qgsexpression.cpp.

§ fcnGeomNumGeometries()

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

Definition at line 2090 of file qgsexpression.cpp.

§ fcnGeomNumInteriorRings()

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

Definition at line 2099 of file qgsexpression.cpp.

§ fcnGeomNumPoints()

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

Definition at line 2084 of file qgsexpression.cpp.

§ fcnGeomNumRings()

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

Definition at line 2127 of file qgsexpression.cpp.

§ fcnGeomPerimeter()

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

Definition at line 2056 of file qgsexpression.cpp.

§ fcnGeomToWKT()

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

Definition at line 2416 of file qgsexpression.cpp.

§ fcnGeomX()

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

Definition at line 1596 of file qgsexpression.cpp.

§ fcnGeomY()

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

Definition at line 1615 of file qgsexpression.cpp.

§ fcnGeomZ()

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

Definition at line 1634 of file qgsexpression.cpp.

§ fcnGetFeature()

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

Definition at line 3067 of file qgsexpression.cpp.

§ fcnGetGeometry()

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

Definition at line 3030 of file qgsexpression.cpp.

§ fcnGetLayerProperty()

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

Definition at line 3103 of file qgsexpression.cpp.

§ fcnGetVariable()

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

Definition at line 368 of file qgsexpression.cpp.

§ fcnHamming()

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

Definition at line 1069 of file qgsexpression.cpp.

§ fcnHour()

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

Definition at line 1519 of file qgsexpression.cpp.

§ fcnIf()

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

Definition at line 2728 of file qgsexpression.cpp.

§ fcnInteriorRingN()

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

Definition at line 1785 of file qgsexpression.cpp.

§ fcnIntersection()

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

Definition at line 2389 of file qgsexpression.cpp.

§ fcnIntersects()

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

Definition at line 2259 of file qgsexpression.cpp.

§ fcnIsClosed()

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

Definition at line 2206 of file qgsexpression.cpp.

§ fcnLCS()

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

Definition at line 1062 of file qgsexpression.cpp.

§ fcnLeft()

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

Definition at line 1383 of file qgsexpression.cpp.

§ fcnLength()

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

Definition at line 1155 of file qgsexpression.cpp.

§ fcnLevenshtein()

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

Definition at line 1055 of file qgsexpression.cpp.

§ fcnLinearScale()

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

Definition at line 494 of file qgsexpression.cpp.

§ fcnLineInterpolateAngle()

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

Definition at line 2630 of file qgsexpression.cpp.

§ fcnLineInterpolatePoint()

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

Definition at line 2618 of file qgsexpression.cpp.

§ fcnLineLocatePoint()

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

Definition at line 2654 of file qgsexpression.cpp.

§ fcnLineMerge()

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

Definition at line 1843 of file qgsexpression.cpp.

§ fcnLn()

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

Definition at line 450 of file qgsexpression.cpp.

§ fcnLog()

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

Definition at line 464 of file qgsexpression.cpp.

§ fcnLog10()

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

Definition at line 457 of file qgsexpression.cpp.

§ fcnLower()

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

Definition at line 1027 of file qgsexpression.cpp.

§ fcnLPad()

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

Definition at line 1398 of file qgsexpression.cpp.

§ fcnMakeLine()

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

Definition at line 1889 of file qgsexpression.cpp.

§ fcnMakePoint()

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

Definition at line 1857 of file qgsexpression.cpp.

§ fcnMakePointM()

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

Definition at line 1881 of file qgsexpression.cpp.

§ fcnMakePolygon()

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

Definition at line 1918 of file qgsexpression.cpp.

§ fcnMapId()

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

Definition at line 1258 of file qgsexpression.cpp.

§ fcnMax()

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

Definition at line 560 of file qgsexpression.cpp.

§ fcnMin()

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

Definition at line 578 of file qgsexpression.cpp.

§ fcnMinute()

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

Definition at line 1534 of file qgsexpression.cpp.

§ fcnMonth()

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

Definition at line 1489 of file qgsexpression.cpp.

§ fcnNodesToPoints()

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

Definition at line 1723 of file qgsexpression.cpp.

§ fcnNow()

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

Definition at line 1417 of file qgsexpression.cpp.

§ fcnOrderParts()

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

Definition at line 2532 of file qgsexpression.cpp.

§ fcnOverlaps()

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

Definition at line 2283 of file qgsexpression.cpp.

§ fcnPerimeter()

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

Definition at line 2073 of file qgsexpression.cpp.

§ fcnPi()

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

Definition at line 2682 of file qgsexpression.cpp.

§ fcnPointN()

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

Definition at line 1668 of file qgsexpression.cpp.

§ fcnPointOnSurface()

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

Definition at line 2327 of file qgsexpression.cpp.

§ fcnProject()

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

Definition at line 2498 of file qgsexpression.cpp.

§ fcnRadians()

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

Definition at line 399 of file qgsexpression.cpp.

§ fcnRampColor()

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

Definition at line 2766 of file qgsexpression.cpp.

§ fcnRegexpMatch()

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

Definition at line 1195 of file qgsexpression.cpp.

§ fcnRegexpReplace()

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

Definition at line 1180 of file qgsexpression.cpp.

§ fcnRegexpSubstr()

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

Definition at line 1209 of file qgsexpression.cpp.

§ fcnRelate()

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

Definition at line 2219 of file qgsexpression.cpp.

§ fcnReplace()

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

Definition at line 1173 of file qgsexpression.cpp.

§ fcnReverse()

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

Definition at line 2353 of file qgsexpression.cpp.

§ fcnRight()

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

Definition at line 1376 of file qgsexpression.cpp.

§ fcnRnd()

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

Definition at line 483 of file qgsexpression.cpp.

§ fcnRndF()

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

Definition at line 472 of file qgsexpression.cpp.

§ fcnRound()

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

Definition at line 2664 of file qgsexpression.cpp.

§ fcnRowNumber()

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

Definition at line 1247 of file qgsexpression.cpp.

§ fcnRPad()

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

Definition at line 1390 of file qgsexpression.cpp.

§ fcnScale()

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

Definition at line 2689 of file qgsexpression.cpp.

§ fcnSeconds()

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

Definition at line 1549 of file qgsexpression.cpp.

§ fcnSegmentsToLines()

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

Definition at line 1758 of file qgsexpression.cpp.

§ fcnShortestLine()

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

Definition at line 2607 of file qgsexpression.cpp.

§ fcnSin()

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

Definition at line 409 of file qgsexpression.cpp.

§ fcnSoundex()

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

Definition at line 1077 of file qgsexpression.cpp.

§ fcnSpecialColumn()

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

Definition at line 3022 of file qgsexpression.cpp.

§ fcnSqrt()

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

Definition at line 387 of file qgsexpression.cpp.

§ fcnStartPoint()

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

Definition at line 1689 of file qgsexpression.cpp.

§ fcnStrpos()

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

Definition at line 1370 of file qgsexpression.cpp.

§ fcnSubstr()

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

Definition at line 1239 of file qgsexpression.cpp.

§ fcnSymDifference()

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

Definition at line 2398 of file qgsexpression.cpp.

§ fcnTan()

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

Definition at line 419 of file qgsexpression.cpp.

§ fcnTitle()

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

Definition at line 1037 of file qgsexpression.cpp.

§ fcnToDate()

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

Definition at line 1422 of file qgsexpression.cpp.

§ fcnToDateTime()

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

Definition at line 1012 of file qgsexpression.cpp.

§ fcnToInt()

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

Definition at line 999 of file qgsexpression.cpp.

§ fcnToInterval()

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

Definition at line 1432 of file qgsexpression.cpp.

§ fcnToReal()

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

Definition at line 1003 of file qgsexpression.cpp.

§ fcnToString()

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

Definition at line 1007 of file qgsexpression.cpp.

§ fcnToTime()

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

Definition at line 1427 of file qgsexpression.cpp.

§ fcnTouches()

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

Definition at line 2265 of file qgsexpression.cpp.

§ fcnTransformGeometry()

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

Definition at line 3039 of file qgsexpression.cpp.

§ fcnTranslate()

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

Definition at line 2311 of file qgsexpression.cpp.

§ fcnTrim()

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

Definition at line 1049 of file qgsexpression.cpp.

§ fcnUpper()

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

Definition at line 1032 of file qgsexpression.cpp.

§ fcnUuid()

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

Definition at line 1234 of file qgsexpression.cpp.

§ fcnWeek()

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

Definition at line 1504 of file qgsexpression.cpp.

§ fcnWithin()

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

Definition at line 2289 of file qgsexpression.cpp.

§ fcnWordwrap()

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

Definition at line 1089 of file qgsexpression.cpp.

§ fcnX()

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

Definition at line 1568 of file qgsexpression.cpp.

§ fcnXat()

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

Definition at line 1970 of file qgsexpression.cpp.

§ fcnXMax()

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

Definition at line 2188 of file qgsexpression.cpp.

§ fcnXMin()

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

Definition at line 2182 of file qgsexpression.cpp.

§ fcnY()

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

Definition at line 1582 of file qgsexpression.cpp.

§ fcnYat()

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

Definition at line 1978 of file qgsexpression.cpp.

§ fcnYear()

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

Definition at line 1474 of file qgsexpression.cpp.

§ fcnYMax()

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

Definition at line 2200 of file qgsexpression.cpp.

§ fcnYMin()

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

Definition at line 2194 of file qgsexpression.cpp.

§ fncColorCmyka()

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

Definition at line 2882 of file qgsexpression.cpp.

§ fncColorHsla()

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

Definition at line 2800 of file qgsexpression.cpp.

§ fncColorHsva()

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

Definition at line 2840 of file qgsexpression.cpp.

§ fncColorPart()

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

Definition at line 2904 of file qgsexpression.cpp.

§ fncColorRgba()

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

Definition at line 2751 of file qgsexpression.cpp.

§ fncDarker()

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

Definition at line 2994 of file qgsexpression.cpp.

§ fncLighter()

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

Definition at line 3008 of file qgsexpression.cpp.

§ fncSetColorPart()

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

Definition at line 2947 of file qgsexpression.cpp.

§ getDateTimeValue()

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

Definition at line 220 of file qgsexpression.cpp.

§ getDateValue()

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

Definition at line 240 of file qgsexpression.cpp.

§ getDoubleValue()

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

Definition at line 193 of file qgsexpression.cpp.

§ getFeature()

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

Definition at line 294 of file qgsexpression.cpp.

§ getGeometry()

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

Definition at line 285 of file qgsexpression.cpp.

§ getInterval()

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

Definition at line 268 of file qgsexpression.cpp.

§ getIntValue()

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

Definition at line 205 of file qgsexpression.cpp.

§ getNode()

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

Definition at line 306 of file qgsexpression.cpp.

§ getStringValue()

static QString getStringValue ( const QVariant value,
QgsExpression  
)
static

Definition at line 188 of file qgsexpression.cpp.

§ getTimeValue()

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

Definition at line 254 of file qgsexpression.cpp.

§ getTVLValue()

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

Definition at line 333 of file qgsexpression.cpp.

§ getVectorLayer()

QgsVectorLayer* getVectorLayer ( const QVariant value,
QgsExpression  
)

Definition at line 315 of file qgsexpression.cpp.

§ isDateTimeSafe()

bool isDateTimeSafe ( const QVariant v)
inline

Definition at line 138 of file qgsexpression.cpp.

§ isDoubleSafe()

bool isDoubleSafe ( const QVariant v)
inline

Definition at line 121 of file qgsexpression.cpp.

§ isIntervalSafe()

bool isIntervalSafe ( const QVariant v)
inline

Definition at line 144 of file qgsexpression.cpp.

§ isIntSafe()

bool isIntSafe ( const QVariant v)
inline

Definition at line 111 of file qgsexpression.cpp.

§ isNull()

bool isNull ( const QVariant v)
inline

Definition at line 158 of file qgsexpression.cpp.

§ parseExpression()

QgsExpression::Node* parseExpression ( const QString str,
QString parserErrorMsg 
)

§ pointAt()

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

Definition at line 1948 of file qgsexpression.cpp.

§ tvl2variant()

static QVariant tvl2variant ( TVL  v)
static

Definition at line 90 of file qgsexpression.cpp.

Variable Documentation

§ AND

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

Definition at line 73 of file qgsexpression.cpp.

§ NOT

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

Definition at line 88 of file qgsexpression.cpp.

§ OR

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

Definition at line 81 of file qgsexpression.cpp.