Class: QgsCachedFeatureIterator¶
Delivers features from the cache
Class Hierarchy¶
Base classes¶
Internal feature iterator to be implemented within data providers  | 
Methods
Close this iterator.  | 
|
Implementation for fetching a feature.  | 
|
We have a local special iterator for FilterFids, no need to run the generic.  | 
|
Rewind to the beginning of the iterator  | 
- class qgis.core.QgsCachedFeatureIterator[source]¶
 Bases:
QgsAbstractFeatureIterator- __init__(vlCache: QgsVectorLayerCache | None, featureRequest: QgsFeatureRequest)
 This constructor creates a feature iterator, that delivers all cached features. No request is made to the backend.
- Parameters:
 vlCache (Optional[QgsVectorLayerCache]) – The vector layer cache to use
featureRequest (QgsFeatureRequest) – The feature request to answer
- close(self) bool[source]¶
 Close this iterator. No further features will be available.
- Return type:
 bool
- Returns:
 Trueif successful
- fetchFeature(self, f: QgsFeature) bool[source]¶
 Implementation for fetching a feature.
- Parameters:
 f (QgsFeature) – Will write to this feature
- Return type:
 bool
- Returns:
 bool
Trueif the operation was OK
- nextFeatureFilterFids(self, f: QgsFeature) bool[source]¶
 We have a local special iterator for FilterFids, no need to run the generic.
- Parameters:
 f (QgsFeature) – Will write to this feature
- Return type:
 bool
- Returns:
 bool
Trueif the operation was OK