|
@@ -58,6 +58,11 @@ class CORE_EXPORT QgsVectorLayerFeatureSource : public QgsAbstractFeatureSource |
|
|
*/ |
|
|
explicit QgsVectorLayerFeatureSource( const QgsVectorLayer *layer ); |
|
|
|
|
|
//! QgsVectorLayerFeatureSource cannot be copied |
|
|
QgsVectorLayerFeatureSource( const QgsVectorLayerFeatureSource &other ) = delete; |
|
|
//! QgsVectorLayerFeatureSource cannot be copied |
|
|
QgsVectorLayerFeatureSource &operator==( const QgsVectorLayerFeatureSource &other ) = delete; |
|
|
|
|
|
~QgsVectorLayerFeatureSource() override; |
|
|
|
|
|
QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) override; |
|
@@ -87,11 +92,9 @@ class CORE_EXPORT QgsVectorLayerFeatureSource : public QgsAbstractFeatureSource |
|
|
|
|
|
protected: |
|
|
|
|
|
QgsAbstractFeatureSource *mProviderFeatureSource = nullptr; |
|
|
|
|
|
QgsVectorLayerJoinBuffer *mJoinBuffer = nullptr; |
|
|
|
|
|
QgsExpressionFieldBuffer *mExpressionFieldBuffer = nullptr; |
|
|
std::unique_ptr< QgsAbstractFeatureSource > mProviderFeatureSource; |
|
|
std::unique_ptr< QgsVectorLayerJoinBuffer > mJoinBuffer; |
|
|
std::unique_ptr< QgsExpressionFieldBuffer > mExpressionFieldBuffer; |
|
|
|
|
|
QgsFields mFields; |
|
|
|
|
@@ -112,6 +115,11 @@ class CORE_EXPORT QgsVectorLayerFeatureSource : public QgsAbstractFeatureSource |
|
|
QgsAttributeList mDeletedAttributeIds; |
|
|
|
|
|
QgsCoordinateReferenceSystem mCrs; |
|
|
|
|
|
private: |
|
|
#ifdef SIP_RUN |
|
|
QgsVectorLayerFeatureSource( const QgsVectorLayerFeatureSource &other ); |
|
|
#endif |
|
|
}; |
|
|
|
|
|
/** |
|
@@ -312,6 +320,11 @@ class CORE_EXPORT QgsVectorLayerSelectedFeatureSource : public QgsFeatureSource, |
|
|
*/ |
|
|
QgsVectorLayerSelectedFeatureSource( QgsVectorLayer *layer ); |
|
|
|
|
|
//! QgsVectorLayerSelectedFeatureSource cannot be copied |
|
|
QgsVectorLayerSelectedFeatureSource( const QgsVectorLayerSelectedFeatureSource &other ) = delete; |
|
|
//! QgsVectorLayerSelectedFeatureSource cannot be copied |
|
|
QgsVectorLayerSelectedFeatureSource &operator==( const QgsVectorLayerSelectedFeatureSource &other ) = delete; |
|
|
|
|
|
QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const override; |
|
|
QgsCoordinateReferenceSystem sourceCrs() const override; |
|
|
QgsFields fields() const override; |
|
@@ -323,6 +336,10 @@ class CORE_EXPORT QgsVectorLayerSelectedFeatureSource : public QgsFeatureSource, |
|
|
|
|
|
private: |
|
|
|
|
|
#ifdef SIP_RUN |
|
|
QgsVectorLayerSelectedFeatureSource( const QgsVectorLayerSelectedFeatureSource &other ); |
|
|
#endif |
|
|
|
|
|
// ideally this wouldn't be mutable, but QgsVectorLayerFeatureSource has non-const getFeatures() |
|
|
mutable QgsVectorLayerFeatureSource mSource; |
|
|
QgsFeatureIds mSelectedFeatureIds; |
|
|