|
| QgsExpressionContext ()=default |
| Constructor for QgsExpressionContext. More...
|
|
| QgsExpressionContext (const QgsExpressionContext &other) |
| Copy constructor. More...
|
|
| QgsExpressionContext (const QList< QgsExpressionContextScope * > &scopes) |
| Initializes the context with given list of scopes. More...
|
|
| ~QgsExpressionContext () |
|
QgsExpressionContextScope * | activeScopeForVariable (const QString &name) |
| Returns the currently active scope from the context for a specified variable name. More...
|
|
const QgsExpressionContextScope * | activeScopeForVariable (const QString &name) const |
| Returns the currently active scope from the context for a specified variable name. More...
|
|
void | appendScope (QgsExpressionContextScope *scope) |
| Appends a scope to the end of the context. More...
|
|
void | appendScopes (const QList< QgsExpressionContextScope * > &scopes) |
| Appends a list of scopes to the end of the context. More...
|
|
QVariant | cachedValue (const QString &key) const |
| Returns the matching cached value, if set. More...
|
|
void | clearCachedValues () const |
| Clears all cached values from the context. More...
|
|
QString | description (const QString &name) const |
| Returns a translated description string for the variable with specified name. More...
|
|
QgsFeature | feature () const |
| Convenience function for retrieving the feature for the context, if set. More...
|
|
QgsFeedback * | feedback () const |
| Returns the feedback object that can be queried regularly by the expression to check if evaluation should be canceled, if set. More...
|
|
QgsFields | fields () const |
| Convenience function for retrieving the fields for the context, if set. More...
|
|
QStringList | filteredVariableNames () const |
| Returns a filtered list of variables names set by all scopes in the context. More...
|
|
QgsExpressionFunction * | function (const QString &name) const |
| Fetches a matching function from the context. More...
|
|
QStringList | functionNames () const |
| Retrieves a list of function names contained in the context. More...
|
|
QgsGeometry | geometry () const |
| Convenience function for retrieving the geometry for the context, if set. More...
|
|
bool | hasCachedValue (const QString &key) const |
| Returns true if the expression context contains a cached value with a matching key. More...
|
|
bool | hasFeature () const |
| Returns true if the context has a feature associated with it. More...
|
|
bool | hasFunction (const QString &name) const |
| Checks whether a specified function is contained in the context. More...
|
|
bool | hasGeometry () const |
| Returns true if the context has a geometry associated with it. More...
|
|
bool | hasVariable (const QString &name) const |
| Check whether a variable is specified by any scope within the context. More...
|
|
QStringList | highlightedVariables () const |
| Returns the current list of variables highlighted within the context. More...
|
|
int | indexOfScope (const QString &scopeName) const |
| Returns the index of the first scope with a matching name within the context. More...
|
|
int | indexOfScope (QgsExpressionContextScope *scope) const |
| Returns the index of the specified scope if it exists within the context. More...
|
|
bool | isHighlightedFunction (const QString &name) const |
| Returns true if the specified function name is intended to be highlighted to the user. More...
|
|
bool | isHighlightedVariable (const QString &name) const |
| Returns true if the specified variable name is intended to be highlighted to the user. More...
|
|
bool | isReadOnly (const QString &name) const |
| Returns whether a variable is read only, and should not be modifiable by users. More...
|
|
QgsExpressionContextScope * | lastScope () |
| Returns the last scope added to the context. More...
|
|
QgsExpressionContext & | operator<< (QgsExpressionContextScope *scope) |
| Appends a scope to the end of the context. More...
|
|
QgsExpressionContext & | operator= (const QgsExpressionContext &other) |
|
QgsExpressionContext & | operator= (QgsExpressionContext &&other) noexcept |
|
QgsExpressionContextScope * | popScope () |
| Removes the last scope from the expression context and return it. More...
|
|
QgsExpressionContextScope * | scope (int index) |
| Returns the scope at the specified index within the context. More...
|
|
int | scopeCount () const |
| Returns the number of scopes contained in the context. More...
|
|
QList< QgsExpressionContextScope * > | scopes () |
| Returns a list of scopes contained within the stack. More...
|
|
void | setCachedValue (const QString &key, const QVariant &value) const |
| Sets a value to cache within the expression context. More...
|
|
void | setFeature (const QgsFeature &feature) |
| Convenience function for setting a feature for the context. More...
|
|
void | setFeedback (QgsFeedback *feedback) |
| Attach a feedback object that can be queried regularly by the expression engine to check if expression evaluation should be canceled. More...
|
|
void | setFields (const QgsFields &fields) |
| Convenience function for setting a fields for the context. More...
|
|
void | setGeometry (const QgsGeometry &geometry) |
| Convenience function for setting a geometry for the context. More...
|
|
void | setHighlightedFunctions (const QStringList &names) |
| Sets the list of function names intended to be highlighted to the user. More...
|
|
void | setHighlightedVariables (const QStringList &variableNames) |
| Sets the list of variable names within the context intended to be highlighted to the user. More...
|
|
void | setOriginalValueVariable (const QVariant &value) |
| Sets the original value variable value for the context. More...
|
|
QList< QgsExpressionContextScope * > | takeScopes () |
| Returns all scopes from this context and remove them, leaving this context without any context. More...
|
|
QVariant | variable (const QString &name) const |
| Fetches a matching variable from the context. More...
|
|
QStringList | variableNames () const |
| Returns a list of variables names set by all scopes in the context. More...
|
|
QVariantMap | variablesToMap () const |
| Returns a map of variable name to value representing all the expression variables contained by the context. More...
|
|