QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
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
Gets feature IDs that should be fetched.
The cached features can be indexed by QgsAbstractCacheIndex.
QgsFeatureId filterFid() const
Gets the feature ID that should be fetched.
FilterType filterType() const
Returns the filter type which is currently set on this request.
@ FilterFids
Filter using feature IDs.
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.
QgsCacheIndexFeatureId(QgsVectorLayerCache *)
QgsFeatureIds cachedFeatureIds() const
Returns the set of feature IDs for features which are cached.