QGIS API Documentation 4.3.0-Master (bd2f5e21fd1)
Loading...
Searching...
No Matches
QgsEsriArcadeDictionaryElement Class Reference

Represents a key-value entry in an Esri Arcade dictionary literal. More...

#include <qgsesriarcadescript.h>

Public Member Functions

 QgsEsriArcadeDictionaryElement (const QString &key, QgsEsriArcadeExpression *value, bool isAutoKey=false)
 Constructor for QgsEsriArcadeDictionaryElement.
 ~QgsEsriArcadeDictionaryElement ()
QgsEsriArcadeDictionaryElement * clone () const
 Creates a deep copy of the element.
QString dump () const
 Formats the element as string.
bool isAutoKey () const
 Returns true if the entry was defined using auto-keys.
QString key () const
 Returns the entry key.
QgsEsriArcadeExpression * value () const
 Returns the entry value expression.

Detailed Description

Represents a key-value entry in an Esri Arcade dictionary literal.

Eg the a: 5 part of the {a: 5, b: 6} dictionary literal.

Since
QGIS 4.4

Definition at line 982 of file qgsesriarcadescript.h.

Constructor & Destructor Documentation

◆ QgsEsriArcadeDictionaryElement()

QgsEsriArcadeDictionaryElement::QgsEsriArcadeDictionaryElement ( const QString & key,
QgsEsriArcadeExpression * value,
bool isAutoKey = false )

Constructor for QgsEsriArcadeDictionaryElement.

Ownership of value is transferred to this element.

Definition at line 571 of file qgsesriarcadescript.cpp.

◆ ~QgsEsriArcadeDictionaryElement()

QgsEsriArcadeDictionaryElement::~QgsEsriArcadeDictionaryElement ( )
default

Member Function Documentation

◆ clone()

QgsEsriArcadeDictionaryElement * QgsEsriArcadeDictionaryElement::clone ( ) const

Creates a deep copy of the element.

Caller takes ownership of the returned object.

Definition at line 587 of file qgsesriarcadescript.cpp.

◆ dump()

QString QgsEsriArcadeDictionaryElement::dump ( ) const

Formats the element as string.

Definition at line 579 of file qgsesriarcadescript.cpp.

◆ isAutoKey()

bool QgsEsriArcadeDictionaryElement::isAutoKey ( ) const
inline

Returns true if the entry was defined using auto-keys.

Definition at line 1007 of file qgsesriarcadescript.h.

◆ key()

QString QgsEsriArcadeDictionaryElement::key ( ) const
inline

Returns the entry key.

Definition at line 997 of file qgsesriarcadescript.h.

◆ value()

QgsEsriArcadeExpression * QgsEsriArcadeDictionaryElement::value ( ) const
inline

Returns the entry value expression.

Definition at line 1002 of file qgsesriarcadescript.h.


The documentation for this class was generated from the following files: