21 , mFeatureIds( featureIds )
22 , mVectorLayerCache( vlCache )
56 , mVectorLayerCache( vlCache )
QgsFeatureId id() const
Get the feature id for this feature.
QSet< QgsFeatureId > QgsFeatureIds
QgsFeatureIds mFeatureIds
QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest())
Query the provider for features specified in request.
QgsVectorLayer * layer()
Returns the layer to which this cache belongs.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QCache< QgsFeatureId, QgsCachedFeature > mCache
QgsCachedFeatureIterator(QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest, QgsFeatureIds featureIds)
This constructor creates a feature iterator, that delivers only cached information, based on the QgsFeatureIds.
QgsFeatureIds::Iterator mFeatureIdIterator
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)...
virtual bool nextFeature(QgsFeature &f)
This class caches features of a given QgsVectorLayer.
QgsFeatureRequest mRequest
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 nextFeature(QgsFeature &f)
QgsVectorLayerCache * mVectorLayerCache
bool nextFeature(QgsFeature &f)
QgsFeatureIterator mFeatIt
QgsCachedFeatureWriterIterator(QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest)
This constructor creates a feature iterator, which queries the backend and caches retrieved features...