QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
22 : C( cachedVectorLayer )
38 Q_UNUSED( featureRequest )
@ FilterFid
Filter using feature ID.
void flushFeature(QgsFeatureId fid) override
Is called whenever a feature is removed from the cache.
const QgsFeatureIds & filterFids() const
Returns the feature IDs that should be fetched.
This class caches features of a given QgsVectorLayer.
QgsFeatureId filterFid() const
Returns the feature ID that should be fetched.
FilterType filterType() const
Returns the attribute/ID filter type which is currently set on this request.
@ FilterFids
Filter using feature IDs.
This class wraps a request for features to a vector layer (or directly its vector data provider).
bool getCacheIterator(QgsFeatureIterator &featureIterator, const QgsFeatureRequest &featureRequest) override
Is called when a feature request is issued on a cached layer.
void flush() override
Sometimes, the whole cache changes its state and its easier to just withdraw everything.
@ FilterExpression
Filter using expression.
QSet< QgsFeatureId > QgsFeatureIds
bool isFidCached(QgsFeatureId fid) const
Check if a certain feature id is cached.
void requestCompleted(const QgsFeatureRequest &featureRequest, const QgsFeatureIds &fids) override
Implement this method to update the the indices, in case you need information contained by the reques...
bool hasFullCache() const
Returns true if the cache is complete, ie it contains all features.
Delivers features from the cache.
@ FilterNone
No filter is applied.
Wrapper for iterator of features from vector data provider or vector layer.
QgsCacheIndexFeatureId(QgsVectorLayerCache *)
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
QgsFeatureIds cachedFeatureIds() const
Returns the set of feature IDs for features which are cached.