QGIS API Documentation  3.13.0-Master (13337b20cd)
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 346 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 358 of file qgsexpressioncontextutils.h.

◆ ~QgsExpressionContextScopePopper()

QgsExpressionContextScopePopper::~QgsExpressionContextScopePopper ( )
inline

Definition at line 364 of file qgsexpressioncontextutils.h.


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