QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsExpressionContextScopePopper Class Reference

RAII class to pop scope from an expression context on destruction. More...

#include <qgsexpressioncontextutils.h>

Public Member Functions

 QgsExpressionContextScopePopper (QgsExpressionContext &context, QgsExpressionContextScope *scope)
 Constructor for QgsExpressionContextScopePopper.
 
 ~QgsExpressionContextScopePopper ()
 

Detailed Description

RAII class to pop scope from an expression context on destruction.

Since
QGIS 3.10

Definition at line 380 of file qgsexpressioncontextutils.h.

Constructor & Destructor Documentation

◆ QgsExpressionContextScopePopper()

QgsExpressionContextScopePopper::QgsExpressionContextScopePopper ( QgsExpressionContext context,
QgsExpressionContextScope scope 
)
inline

Constructor for QgsExpressionContextScopePopper.

Appends the specified scope to the end of context. scope will be automatically popped and deleted when this QgsExpressionContextScopePopper is destroyed.

Ownership of scope is transferred to the popper, but it is guaranteed to exist of the lifetime of the popper.

Definition at line 392 of file qgsexpressioncontextutils.h.

◆ ~QgsExpressionContextScopePopper()

QgsExpressionContextScopePopper::~QgsExpressionContextScopePopper ( )
inline

Definition at line 398 of file qgsexpressioncontextutils.h.


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