QGIS API Documentation  3.20.0-Odense (decaadbb31)
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. More...
 
 ~QgsExpressionContextScopePopper ()
 

Detailed Description

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

Since
QGIS 3.10

Definition at line 354 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 366 of file qgsexpressioncontextutils.h.

◆ ~QgsExpressionContextScopePopper()

QgsExpressionContextScopePopper::~QgsExpressionContextScopePopper ( )
inline

Definition at line 372 of file qgsexpressioncontextutils.h.


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