, C( cachedVectorLayer )
Q_UNUSED( featureRequest )
Wrapper for iterator of features from vector data provider or vector layer.
QSet< QgsFeatureId > QgsFeatureIds
virtual void requestCompleted(QgsFeatureRequest featureRequest, QgsFeatureIds fids)
Implement this method to update the the indices, in case you need information contained by the reques...
bool isFidCached(const QgsFeatureId fid)
Check if a certain feature id is cached.
virtual void flushFeature(const QgsFeatureId fid)
Is called, whenever a feature is removed from the cache.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
FilterType filterType() const
virtual void flush()
Sometimes, the whole cache changes its state and its easier to just withdraw everything.
This class caches features of a given QgsVectorLayer.
const QgsFeatureId & filterFid() const
Abstract base class for cache indices.
virtual bool getCacheIterator(QgsFeatureIterator &featureIterator, const QgsFeatureRequest &featureRequest)
Is called, when a feature request is issued on a cached layer.
Delivers features from the cache.