21 , mFeatureIds( featureIds )
22 , mVectorLayerCache( vlCache )
32 , mVectorLayerCache( vlCache )
86 , mVectorLayerCache( vlCache )
QgsFeatureId id() const
Get the feature id for this feature.
virtual bool rewind()
Rewind to the beginning of the iterator.
bool acceptFeature(const QgsFeature &feature)
Check if a feature is accepted by this requests filter.
Filter using feature IDs.
QSet< QgsFeatureId > QgsFeatureIds
QgsFeatureIds mFeatureIds
QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest())
Query the provider for features specified in request.
const QgsFeatureIds & filterFids() const
QgsVectorLayer * layer()
Returns the layer to which this cache belongs.
bool mClosed
Set to true, as soon as the iterator is closed.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual bool rewind()
Rewind to the beginning of the iterator.
QCache< QgsFeatureId, QgsCachedFeature > mCache
virtual bool fetchFeature(QgsFeature &f)
Implementation for fetching a feature.
QgsCachedFeatureIterator(QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest, QgsFeatureIds featureIds)
This constructor creates a feature iterator, that delivers only cached information, based on the QgsFeatureIds.
virtual bool close()
Close this iterator.
Internal feature iterator to be implemented within data providers.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
FilterType filterType() const
This class caches features of a given QgsVectorLayer.
const QgsFeatureId & filterFid() const
QgsFeatureRequest mRequest
A copy of the feature request.
QgsVectorLayerCache * mVectorLayerCache
void cacheFeature(QgsFeature &feat)
void requestCompleted(QgsFeatureRequest featureRequest, QgsFeatureIds fids)
Gets called, whenever the full list of feature ids for a certain request is known.
virtual bool fetchFeature(QgsFeature &f)
Implementation for fetching a feature.
QgsVectorLayerCache * mVectorLayerCache
bool nextFeature(QgsFeature &f)
QgsFeatureIterator mFeatIt
virtual bool close()
Close this iterator.
QgsCachedFeatureWriterIterator(QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest)
This constructor creates a feature iterator, which queries the backend and caches retrieved features...
QgsFeatureIds::ConstIterator mFeatureIdIterator