15 #ifndef QGSVECTORLAYERFEATUREITERATOR_H
16 #define QGSVECTORLAYERFEATUREITERATOR_H
66 void rewindEditBuffer();
69 bool fetchNextChangedGeomFeature(
QgsFeature& f );
93 void addJoinedAttributesCached(
QgsFeature& f,
const QVariant& joinValue )
const;
94 void addJoinedAttributesDirect(
QgsFeature& f,
const QVariant& joinValue )
const;
112 #endif // QGSVECTORLAYERFEATUREITERATOR_H
Wrapper for iterator of features from vector data provider or vector layer.
QMap< QgsFeatureId, QgsGeometry > QgsGeometryMap
virtual bool close()=0
end of iterating: free the resources / lock
A rectangle specified with double values.
QgsFeatureIterator mProviderIterator
QgsFeatureMap::ConstIterator mFetchAddedFeaturesIt
QgsGeometryMap::ConstIterator mFetchChangedGeomIt
QgsChangedAttributesMap mChangedAttributeValues
QSet< QgsFeatureId > QgsFeatureIds
QMap< QgsFeatureId, QgsFeature > QgsFeatureMap
virtual bool rewind()=0
reset the iterator to the starting position
QList< QgsField > mAddedAttributes
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsAttributeList mDeletedAttributeIds
QgsVectorLayer * joinLayer
resolved pointer to the joined layer
int joinField
index of field (of the joined layer) must have equal value
QMap< QgsVectorLayer *, FetchJoinInfo > mFetchJoinInfo
Informations about joins used in the current select() statement.
virtual bool nextFeature(QgsFeature &f)=0
fetch next feature, return true on success
const QgsVectorJoinInfo * joinInfo
cannonical source of information about the join
QgsGeometryMap mChangedGeometries
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)...
QList< int > QgsAttributeList
QgsFeatureRequest mProviderRequest
QgsFeatureIds mDeletedFeatureIds
QSet< QgsFeatureId > mFetchConsidered
int indexOffset
at what position the joined fields start
QMap< QgsFeatureId, QgsFeature > QgsFeatureMap
int targetField
index of field (of this layer) that drives the join
QMap< QgsFeatureId, QgsAttributeMap > QgsChangedAttributesMap
QgsFeatureMap mAddedFeatures
Join information prepared for fast attribute id mapping in QgsVectorLayerJoinBuffer::updateFeatureAtt...
Represents a vector layer which manages a vector based data sets.
QgsAttributeList attributes
attributes to fetch