QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
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 361 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 373 of file qgsexpressioncontextutils.h.

◆ ~QgsExpressionContextScopePopper()

QgsExpressionContextScopePopper::~QgsExpressionContextScopePopper ( )
inline

Definition at line 379 of file qgsexpressioncontextutils.h.


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