QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <qgsvectorlayerfeatureiterator.h>
Classes | |
struct | FetchJoinInfo |
Join information prepared for fast attribute id mapping in QgsVectorLayerJoinBuffer::updateFeatureAttributes(). More... | |
Public Member Functions | |
QgsVectorLayerFeatureIterator (QgsVectorLayerFeatureSource *source, bool ownSource, const QgsFeatureRequest &request) | |
~QgsVectorLayerFeatureIterator () | |
virtual bool | close () override |
end of iterating: free the resources / lock More... | |
virtual bool | rewind () override |
reset the iterator to the starting position More... | |
virtual void | setInterruptionChecker (QgsInterruptionChecker *interruptionChecker) override |
Attach an object that can be queried regularly by the iterator to check if it must stopped. More... | |
Public Member Functions inherited from QgsAbstractFeatureIteratorFromSource< QgsVectorLayerFeatureSource > | |
QgsAbstractFeatureIteratorFromSource (QgsVectorLayerFeatureSource *source, bool ownSource, const QgsFeatureRequest &request) | |
~QgsAbstractFeatureIteratorFromSource () | |
Public Member Functions inherited from QgsAbstractFeatureIterator | |
QgsAbstractFeatureIterator (const QgsFeatureRequest &request) | |
base class constructor - stores the iteration parameters More... | |
virtual | ~QgsAbstractFeatureIterator () |
destructor makes sure that the iterator is closed properly More... | |
CompileStatus | compileStatus () const |
Returns the status of expression compilation for filter expression requests. More... | |
virtual bool | nextFeature (QgsFeature &f) |
fetch next feature, return true on success More... | |
Protected Member Functions | |
void | addExpressionAttribute (QgsFeature &f, int attrIndex) |
Adds an expression based attribute to a feature. More... | |
void | addJoinedAttributes (QgsFeature &f) |
void | addVirtualAttributes (QgsFeature &f) |
Adds attributes that don't source from the provider but are added inside QGIS Includes. More... | |
virtual bool | fetchFeature (QgsFeature &feature) override |
fetch next feature, return true on success More... | |
bool | fetchNextAddedFeature (QgsFeature &f) |
bool | fetchNextChangedAttributeFeature (QgsFeature &f) |
bool | fetchNextChangedGeomFeature (QgsFeature &f) |
bool | nextFeatureFid (QgsFeature &f) |
virtual bool | nextFeatureFilterExpression (QgsFeature &f) override |
Overrides default method as we only need to filter features in the edit buffer while for others filtering is left to the provider implementation. More... | |
void | prepareExpression (int fieldIdx) |
void | prepareField (int fieldIdx) |
void | prepareFields () |
void | prepareJoin (int fieldIdx) |
virtual bool | prepareSimplification (const QgsSimplifyMethod &simplifyMethod) override |
Setup the simplification of geometries to fetch using the specified simplify method. More... | |
void | rewindEditBuffer () |
void | updateChangedAttributes (QgsFeature &f) |
Update feature with uncommited attribute updates. More... | |
void | updateFeatureGeometry (QgsFeature &f) |
Update feature with uncommited geometry updates. More... | |
void | useAddedFeature (const QgsFeature &src, QgsFeature &f) |
void | useChangedAttributeFeature (QgsFeatureId fid, const QgsGeometry &geom, QgsFeature &f) |
Protected Member Functions inherited from QgsAbstractFeatureIteratorFromSource< QgsVectorLayerFeatureSource > | |
void | iteratorClosed () |
to be called by from subclass in close() More... | |
Protected Member Functions inherited from QgsAbstractFeatureIterator | |
void | deref () |
remove reference, delete if refs == 0 More... | |
virtual bool | nextFeatureFilterFids (QgsFeature &f) |
By default, the iterator will fetch all features and check if the id is in the request. More... | |
void | ref () |
add reference More... | |
Additional Inherited Members | |
Public Types inherited from QgsAbstractFeatureIterator | |
enum | CompileStatus { NoCompilation, PartiallyCompiled, Compiled } |
Status of expression compilation for filter expression requests. More... | |
Definition at line 74 of file qgsvectorlayerfeatureiterator.h.
QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator | ( | QgsVectorLayerFeatureSource * | source, |
bool | ownSource, | ||
const QgsFeatureRequest & | request | ||
) |
Definition at line 95 of file qgsvectorlayerfeatureiterator.cpp.
QgsVectorLayerFeatureIterator::~QgsVectorLayerFeatureIterator | ( | ) |
Definition at line 229 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Adds an expression based attribute to a feature.
f | feature |
attrIndex | attribute index |
Definition at line 692 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 632 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Adds attributes that don't source from the provider but are added inside QGIS Includes.
f | The feature will be modified |
Definition at line 652 of file qgsvectorlayerfeatureiterator.cpp.
|
overridevirtual |
end of iterating: free the resources / lock
Implements QgsAbstractFeatureIterator.
Definition at line 342 of file qgsvectorlayerfeatureiterator.cpp.
|
overrideprotectedvirtual |
fetch next feature, return true on success
Implements QgsAbstractFeatureIterator.
Definition at line 238 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 361 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 433 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 406 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 815 of file qgsvectorlayerfeatureiterator.cpp.
|
inlineoverrideprotectedvirtual |
Overrides default method as we only need to filter features in the edit buffer while for others filtering is left to the provider implementation.
Reimplemented from QgsAbstractFeatureIterator.
Definition at line 95 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 550 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 610 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 586 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 504 of file qgsvectorlayerfeatureiterator.cpp.
|
overrideprotectedvirtual |
Setup the simplification of geometries to fetch using the specified simplify method.
Reimplemented from QgsAbstractFeatureIterator.
Definition at line 701 of file qgsvectorlayerfeatureiterator.cpp.
|
overridevirtual |
reset the iterator to the starting position
Implements QgsAbstractFeatureIterator.
Definition at line 324 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 496 of file qgsvectorlayerfeatureiterator.cpp.
|
overridevirtual |
Attach an object that can be queried regularly by the iterator to check if it must stopped.
This is mostly useful for iterators where a single nextFeature()/fetchFeature() iteration might be very long. A typical use case is the WFS provider. When nextFeature()/fetchFeature() is reasonably fast, it is not necessary to implement this method. The default implementation does nothing.
Reimplemented from QgsAbstractFeatureIterator.
Definition at line 355 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Update feature with uncommited attribute updates.
Definition at line 858 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Update feature with uncommited geometry updates.
Definition at line 881 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 385 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 459 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 178 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 177 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 191 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 183 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 182 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 181 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 185 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Information about joins used in the current select() statement.
Allows faster mapping of attribute ids compared to mVectorJoins
Definition at line 189 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 193 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 176 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 175 of file qgsvectorlayerfeatureiterator.h.