QGIS API Documentation  2.99.0-Master (314842d)
Public Member Functions | Protected Attributes | Friends | List of all members
QgsVectorLayerFeatureSource Class Reference

Partial snapshot of vector layer's state (only the members necessary for access to features) More...

#include <qgsvectorlayerfeatureiterator.h>

Inheritance diagram for QgsVectorLayerFeatureSource:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerFeatureSource (const QgsVectorLayer *layer)
 Constructor for QgsVectorLayerFeatureSource. More...
 
 ~QgsVectorLayerFeatureSource ()
 
virtual QgsFeatureIterator getFeatures (const QgsFeatureRequest &request) override
 Get an iterator for features matching the specified request. More...
 
- Public Member Functions inherited from QgsAbstractFeatureSource
virtual ~QgsAbstractFeatureSource ()
 

Protected Attributes

QList< QgsFieldmAddedAttributes
 
QgsFeatureMap mAddedFeatures
 
QgsChangedAttributesMap mChangedAttributeValues
 
QgsGeometryMap mChangedGeometries
 
long mCrsId
 
QgsAttributeList mDeletedAttributeIds
 
QgsFeatureIds mDeletedFeatureIds
 
QgsExpressionFieldBuffermExpressionFieldBuffer = nullptr
 
QgsFields mFields
 
bool mHasEditBuffer
 
QgsVectorLayerJoinBuffermJoinBuffer = nullptr
 
QgsAbstractFeatureSourcemProviderFeatureSource = nullptr
 
- Protected Attributes inherited from QgsAbstractFeatureSource
QSet< QgsAbstractFeatureIterator *> mActiveIterators
 

Friends

class QgsVectorLayerFeatureIterator
 

Additional Inherited Members

- Protected Member Functions inherited from QgsAbstractFeatureSource
void iteratorClosed (QgsAbstractFeatureIterator *it)
 
void iteratorOpened (QgsAbstractFeatureIterator *it)
 

Detailed Description

Partial snapshot of vector layer's state (only the members necessary for access to features)

Note
not available in Python bindings

Definition at line 40 of file qgsvectorlayerfeatureiterator.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerFeatureSource()

QgsVectorLayerFeatureSource::QgsVectorLayerFeatureSource ( const QgsVectorLayer layer)
explicit

Constructor for QgsVectorLayerFeatureSource.

Parameters
layersource layer

Definition at line 28 of file qgsvectorlayerfeatureiterator.cpp.

◆ ~QgsVectorLayerFeatureSource()

QgsVectorLayerFeatureSource::~QgsVectorLayerFeatureSource ( )

Definition at line 83 of file qgsvectorlayerfeatureiterator.cpp.

Member Function Documentation

◆ getFeatures()

QgsFeatureIterator QgsVectorLayerFeatureSource::getFeatures ( const QgsFeatureRequest request)
overridevirtual

Get an iterator for features matching the specified request.

Parameters
requestThe request
Returns
A feature iterator

Implements QgsAbstractFeatureSource.

Definition at line 90 of file qgsvectorlayerfeatureiterator.cpp.

Friends And Related Function Documentation

◆ QgsVectorLayerFeatureIterator

friend class QgsVectorLayerFeatureIterator
friend

Definition at line 53 of file qgsvectorlayerfeatureiterator.h.

Member Data Documentation

◆ mAddedAttributes

QList<QgsField> QgsVectorLayerFeatureSource::mAddedAttributes
protected

Definition at line 73 of file qgsvectorlayerfeatureiterator.h.

◆ mAddedFeatures

QgsFeatureMap QgsVectorLayerFeatureSource::mAddedFeatures
protected

Definition at line 70 of file qgsvectorlayerfeatureiterator.h.

◆ mChangedAttributeValues

QgsChangedAttributesMap QgsVectorLayerFeatureSource::mChangedAttributeValues
protected

Definition at line 74 of file qgsvectorlayerfeatureiterator.h.

◆ mChangedGeometries

QgsGeometryMap QgsVectorLayerFeatureSource::mChangedGeometries
protected

Definition at line 71 of file qgsvectorlayerfeatureiterator.h.

◆ mCrsId

long QgsVectorLayerFeatureSource::mCrsId
protected

Definition at line 77 of file qgsvectorlayerfeatureiterator.h.

◆ mDeletedAttributeIds

QgsAttributeList QgsVectorLayerFeatureSource::mDeletedAttributeIds
protected

Definition at line 75 of file qgsvectorlayerfeatureiterator.h.

◆ mDeletedFeatureIds

QgsFeatureIds QgsVectorLayerFeatureSource::mDeletedFeatureIds
protected

Definition at line 72 of file qgsvectorlayerfeatureiterator.h.

◆ mExpressionFieldBuffer

QgsExpressionFieldBuffer* QgsVectorLayerFeatureSource::mExpressionFieldBuffer = nullptr
protected

Definition at line 61 of file qgsvectorlayerfeatureiterator.h.

◆ mFields

QgsFields QgsVectorLayerFeatureSource::mFields
protected

Definition at line 63 of file qgsvectorlayerfeatureiterator.h.

◆ mHasEditBuffer

bool QgsVectorLayerFeatureSource::mHasEditBuffer
protected

Definition at line 65 of file qgsvectorlayerfeatureiterator.h.

◆ mJoinBuffer

QgsVectorLayerJoinBuffer* QgsVectorLayerFeatureSource::mJoinBuffer = nullptr
protected

Definition at line 59 of file qgsvectorlayerfeatureiterator.h.

◆ mProviderFeatureSource

QgsAbstractFeatureSource* QgsVectorLayerFeatureSource::mProviderFeatureSource = nullptr
protected

Definition at line 57 of file qgsvectorlayerfeatureiterator.h.


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