QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 () override
 
QgsCoordinateReferenceSystem crs () const
 Returns the coordinate reference system for features retrieved from this source. More...
 
QgsFields fields () const
 Returns the fields that will be available for features that are retrieved from this source. More...
 
QgsFeatureIterator getFeatures (const QgsFeatureRequest &request=QgsFeatureRequest()) override
 Gets an iterator for features matching the specified request. More...
 
QString id () const
 Returns the layer id of the source layer. More...
 
- Public Member Functions inherited from QgsAbstractFeatureSource
virtual ~QgsAbstractFeatureSource ()
 

Protected Attributes

QList< QgsFieldmAddedAttributes
 
QgsFeatureMap mAddedFeatures
 
QgsChangedAttributesMap mChangedAttributeValues
 
QgsGeometryMap mChangedGeometries
 
QgsCoordinateReferenceSystem mCrs
 
QgsAttributeList mDeletedAttributeIds
 
QgsFeatureIds mDeletedFeatureIds
 
QgsExpressionFieldBuffermExpressionFieldBuffer = nullptr
 
QgsFields mFields
 
bool mHasEditBuffer
 
QString mId
 
QgsVectorLayerJoinBuffermJoinBuffer = nullptr
 
QgsExpressionContextScope mLayerScope
 
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)

Definition at line 51 of file qgsvectorlayerfeatureiterator.h.

Constructor & Destructor Documentation

QgsVectorLayerFeatureSource::QgsVectorLayerFeatureSource ( const QgsVectorLayer layer)
explicit

Constructor for QgsVectorLayerFeatureSource.

Parameters
layersource layer

Definition at line 30 of file qgsvectorlayerfeatureiterator.cpp.

QgsVectorLayerFeatureSource::~QgsVectorLayerFeatureSource ( )
override

Definition at line 88 of file qgsvectorlayerfeatureiterator.cpp.

Member Function Documentation

QgsCoordinateReferenceSystem QgsVectorLayerFeatureSource::crs ( ) const

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

Since
QGIS 3.0

Definition at line 106 of file qgsvectorlayerfeatureiterator.cpp.

QgsFields QgsVectorLayerFeatureSource::fields ( ) const

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

Since
QGIS 3.0

Definition at line 101 of file qgsvectorlayerfeatureiterator.cpp.

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 95 of file qgsvectorlayerfeatureiterator.cpp.

QString QgsVectorLayerFeatureSource::id ( ) const

Returns the layer id of the source layer.

Since
QGIS 3.4

Definition at line 111 of file qgsvectorlayerfeatureiterator.cpp.

Friends And Related Function Documentation

friend class QgsVectorLayerFeatureIterator
friend

Definition at line 65 of file qgsvectorlayerfeatureiterator.h.

Member Data Documentation

QList<QgsField> QgsVectorLayerFeatureSource::mAddedAttributes
protected

Definition at line 110 of file qgsvectorlayerfeatureiterator.h.

QgsFeatureMap QgsVectorLayerFeatureSource::mAddedFeatures
protected

Definition at line 107 of file qgsvectorlayerfeatureiterator.h.

QgsChangedAttributesMap QgsVectorLayerFeatureSource::mChangedAttributeValues
protected

Definition at line 111 of file qgsvectorlayerfeatureiterator.h.

QgsGeometryMap QgsVectorLayerFeatureSource::mChangedGeometries
protected

Definition at line 108 of file qgsvectorlayerfeatureiterator.h.

QgsCoordinateReferenceSystem QgsVectorLayerFeatureSource::mCrs
protected

Definition at line 114 of file qgsvectorlayerfeatureiterator.h.

QgsAttributeList QgsVectorLayerFeatureSource::mDeletedAttributeIds
protected

Definition at line 112 of file qgsvectorlayerfeatureiterator.h.

QgsFeatureIds QgsVectorLayerFeatureSource::mDeletedFeatureIds
protected

Definition at line 109 of file qgsvectorlayerfeatureiterator.h.

QgsExpressionFieldBuffer* QgsVectorLayerFeatureSource::mExpressionFieldBuffer = nullptr
protected

Definition at line 94 of file qgsvectorlayerfeatureiterator.h.

QgsFields QgsVectorLayerFeatureSource::mFields
protected

Definition at line 96 of file qgsvectorlayerfeatureiterator.h.

bool QgsVectorLayerFeatureSource::mHasEditBuffer
protected

Definition at line 102 of file qgsvectorlayerfeatureiterator.h.

QString QgsVectorLayerFeatureSource::mId
protected

Definition at line 98 of file qgsvectorlayerfeatureiterator.h.

QgsVectorLayerJoinBuffer* QgsVectorLayerFeatureSource::mJoinBuffer = nullptr
protected

Definition at line 92 of file qgsvectorlayerfeatureiterator.h.

QgsExpressionContextScope QgsVectorLayerFeatureSource::mLayerScope
protected

Definition at line 100 of file qgsvectorlayerfeatureiterator.h.

QgsAbstractFeatureSource* QgsVectorLayerFeatureSource::mProviderFeatureSource = nullptr
protected

Definition at line 90 of file qgsvectorlayerfeatureiterator.h.


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