QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsVectorLayer::DeleteContext Struct Reference

Context for cascade delete features. More...

#include <qgsvectorlayer.h>

Public Member Functions

 DeleteContext (bool cascade=false, QgsProject *project=nullptr)
 Constructor for DeleteContext.
QgsFeatureIds handledFeatures (QgsVectorLayer *layer) const
 Returns a list of feature IDs from the specified layer affected by the delete operation.
QList< QgsVectorLayer * > handledLayers (bool includeAuxiliaryLayers=true) const
 Returns a list of all layers affected by the delete operation.

Public Attributes

bool cascade
QMap< QgsVectorLayer *, QgsFeatureIdsmHandledFeatures
QgsProjectproject

Detailed Description

Context for cascade delete features.

Since
QGIS 3.14

Definition at line 541 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

◆ DeleteContext()

QgsVectorLayer::DeleteContext::DeleteContext ( bool cascade = false,
QgsProject * project = nullptr )
inlineexplicit

Constructor for DeleteContext.

Definition at line 547 of file qgsvectorlayer.h.

Member Function Documentation

◆ handledFeatures()

QgsFeatureIds QgsVectorLayer::DeleteContext::handledFeatures ( QgsVectorLayer * layer) const

Returns a list of feature IDs from the specified layer affected by the delete operation.

Definition at line 6661 of file qgsvectorlayer.cpp.

◆ handledLayers()

QList< QgsVectorLayer * > QgsVectorLayer::DeleteContext::handledLayers ( bool includeAuxiliaryLayers = true) const

Returns a list of all layers affected by the delete operation.

If includeAuxiliaryLayers is false then auxiliary layers will not be included in the returned list.

Definition at line 6649 of file qgsvectorlayer.cpp.

Member Data Documentation

◆ cascade

bool QgsVectorLayer::DeleteContext::cascade

Definition at line 563 of file qgsvectorlayer.h.

◆ mHandledFeatures

QMap<QgsVectorLayer *, QgsFeatureIds> QgsVectorLayer::DeleteContext::mHandledFeatures

Definition at line 562 of file qgsvectorlayer.h.

◆ project

QgsProject* QgsVectorLayer::DeleteContext::project

Definition at line 564 of file qgsvectorlayer.h.


The documentation for this struct was generated from the following files: