QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Classes | 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]

Classes

struct  JoinLayerSource
 Contains join layer source information prepared in a thread-safe way, ready for vector layer feature iterators with joins to utilize. More...
 

Public Member Functions

 QgsVectorLayerFeatureSource (const QgsVectorLayer *layer)
 Constructor for QgsVectorLayerFeatureSource.
 
 QgsVectorLayerFeatureSource (const QgsVectorLayerFeatureSource &other)=delete
 
 ~QgsVectorLayerFeatureSource () override
 
QgsCoordinateReferenceSystem crs () const
 Returns the coordinate reference system for features retrieved from this source.
 
QgsFields fields () const
 Returns the fields that will be available for features that are retrieved from this source.
 
QgsFeatureIterator getFeatures (const QgsFeatureRequest &request=QgsFeatureRequest()) override
 Gets an iterator for features matching the specified request.
 
QString id () const
 Returns the layer id of the source layer.
 
QgsVectorLayerFeatureSourceoperator== (const QgsVectorLayerFeatureSource &other)=delete
 
- Public Member Functions inherited from QgsAbstractFeatureSource
virtual ~QgsAbstractFeatureSource ()
 

Protected Attributes

QList< QgsFieldmAddedAttributes
 
QgsFeatureMap mAddedFeatures
 
QgsChangedAttributesMap mChangedAttributeValues
 
QgsGeometryMap mChangedGeometries
 
QgsCoordinateReferenceSystem mCrs
 
QgsAttributeList mDeletedAttributeIds
 
QgsFeatureIds mDeletedFeatureIds
 
std::unique_ptr< QgsExpressionFieldBuffermExpressionFieldBuffer
 
QgsFields mFields
 
bool mHasEditBuffer
 
QString mId
 
std::unique_ptr< QgsVectorLayerJoinBuffermJoinBuffer
 
QMap< QString, JoinLayerSourcemJoinSources
 Contains prepared join sources by layer ID.
 
QgsExpressionContextScope mLayerScope
 
std::unique_ptr< QgsAbstractFeatureSourcemProviderFeatureSource
 
- 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)

Definition at line 52 of file qgsvectorlayerfeatureiterator.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerFeatureSource() [1/2]

QgsVectorLayerFeatureSource::QgsVectorLayerFeatureSource ( const QgsVectorLayer layer)
explicit

Constructor for QgsVectorLayerFeatureSource.

Parameters
layersource layer

Definition at line 39 of file qgsvectorlayerfeatureiterator.cpp.

◆ QgsVectorLayerFeatureSource() [2/2]

QgsVectorLayerFeatureSource::QgsVectorLayerFeatureSource ( const QgsVectorLayerFeatureSource other)
delete

◆ ~QgsVectorLayerFeatureSource()

QgsVectorLayerFeatureSource::~QgsVectorLayerFeatureSource ( )
overridedefault

Member Function Documentation

◆ crs()

QgsCoordinateReferenceSystem QgsVectorLayerFeatureSource::crs ( ) const

Returns the coordinate reference system for features retrieved from this source.

Definition at line 126 of file qgsvectorlayerfeatureiterator.cpp.

◆ fields()

QgsFields QgsVectorLayerFeatureSource::fields ( ) const

Returns the fields that will be available for features that are retrieved from this source.

Definition at line 121 of file qgsvectorlayerfeatureiterator.cpp.

◆ getFeatures()

QgsFeatureIterator QgsVectorLayerFeatureSource::getFeatures ( const QgsFeatureRequest request = QgsFeatureRequest())
overridevirtual

Gets an iterator for features matching the specified request.

Parameters
requestThe request
Returns
A feature iterator

Implements QgsAbstractFeatureSource.

Definition at line 115 of file qgsvectorlayerfeatureiterator.cpp.

◆ id()

QString QgsVectorLayerFeatureSource::id ( ) const

Returns the layer id of the source layer.

Since
QGIS 3.4

Definition at line 131 of file qgsvectorlayerfeatureiterator.cpp.

◆ operator==()

QgsVectorLayerFeatureSource & QgsVectorLayerFeatureSource::operator== ( const QgsVectorLayerFeatureSource other)
delete

Friends And Related Symbol Documentation

◆ QgsVectorLayerFeatureIterator

friend class QgsVectorLayerFeatureIterator
friend

Definition at line 69 of file qgsvectorlayerfeatureiterator.h.

Member Data Documentation

◆ mAddedAttributes

QList<QgsField> QgsVectorLayerFeatureSource::mAddedAttributes
protected

Definition at line 138 of file qgsvectorlayerfeatureiterator.h.

◆ mAddedFeatures

QgsFeatureMap QgsVectorLayerFeatureSource::mAddedFeatures
protected

Definition at line 135 of file qgsvectorlayerfeatureiterator.h.

◆ mChangedAttributeValues

QgsChangedAttributesMap QgsVectorLayerFeatureSource::mChangedAttributeValues
protected

Definition at line 139 of file qgsvectorlayerfeatureiterator.h.

◆ mChangedGeometries

QgsGeometryMap QgsVectorLayerFeatureSource::mChangedGeometries
protected

Definition at line 136 of file qgsvectorlayerfeatureiterator.h.

◆ mCrs

QgsCoordinateReferenceSystem QgsVectorLayerFeatureSource::mCrs
protected

Definition at line 142 of file qgsvectorlayerfeatureiterator.h.

◆ mDeletedAttributeIds

QgsAttributeList QgsVectorLayerFeatureSource::mDeletedAttributeIds
protected

Definition at line 140 of file qgsvectorlayerfeatureiterator.h.

◆ mDeletedFeatureIds

QgsFeatureIds QgsVectorLayerFeatureSource::mDeletedFeatureIds
protected

Definition at line 137 of file qgsvectorlayerfeatureiterator.h.

◆ mExpressionFieldBuffer

std::unique_ptr< QgsExpressionFieldBuffer > QgsVectorLayerFeatureSource::mExpressionFieldBuffer
protected

Definition at line 122 of file qgsvectorlayerfeatureiterator.h.

◆ mFields

QgsFields QgsVectorLayerFeatureSource::mFields
protected

Definition at line 124 of file qgsvectorlayerfeatureiterator.h.

◆ mHasEditBuffer

bool QgsVectorLayerFeatureSource::mHasEditBuffer
protected

Definition at line 130 of file qgsvectorlayerfeatureiterator.h.

◆ mId

QString QgsVectorLayerFeatureSource::mId
protected

Definition at line 126 of file qgsvectorlayerfeatureiterator.h.

◆ mJoinBuffer

std::unique_ptr< QgsVectorLayerJoinBuffer > QgsVectorLayerFeatureSource::mJoinBuffer
protected

Definition at line 94 of file qgsvectorlayerfeatureiterator.h.

◆ mJoinSources

QMap< QString, JoinLayerSource > QgsVectorLayerFeatureSource::mJoinSources
protected

Contains prepared join sources by layer ID.

Definition at line 119 of file qgsvectorlayerfeatureiterator.h.

◆ mLayerScope

QgsExpressionContextScope QgsVectorLayerFeatureSource::mLayerScope
protected

Definition at line 128 of file qgsvectorlayerfeatureiterator.h.

◆ mProviderFeatureSource

std::unique_ptr< QgsAbstractFeatureSource > QgsVectorLayerFeatureSource::mProviderFeatureSource
protected

Definition at line 92 of file qgsvectorlayerfeatureiterator.h.


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