, C( cachedVectorLayer )
Q_UNUSED( featureRequest )
Wrapper for iterator of features from vector data provider or vector layer.
virtual 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...
QgsFeatureId filterFid() const
Get the feature ID that should be fetched.
virtual void flushFeature(const QgsFeatureId fid) override
Is called, whenever a feature is removed from the cache.
bool isFidCached(const QgsFeatureId fid)
Check if a certain feature id is cached.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
FilterType filterType() const
Return the filter type which is currently set on this request.
This class caches features of a given QgsVectorLayer.
Abstract base class for cache indices.
Delivers features from the cache.
virtual void flush() override
Sometimes, the whole cache changes its state and its easier to just withdraw everything.
virtual bool getCacheIterator(QgsFeatureIterator &featureIterator, const QgsFeatureRequest &featureRequest) override
Is called, when a feature request is issued on a cached layer.