QGIS API Documentation
2.8.2-Wien
|
#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 | |
virtual bool | rewind () override |
reset the iterator to the starting position | |
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 | |
virtual | ~QgsAbstractFeatureIterator () |
destructor makes sure that the iterator is closed properly | |
virtual bool | nextFeature (QgsFeature &f) |
fetch next feature, return true on success |
Protected Member Functions | |
void | addJoinedAttributes (QgsFeature &f) |
void | addVirtualAttributes (QgsFeature &f) |
Adds attributes that don't source from the provider but are added inside QGIS Includes. | |
virtual bool | fetchFeature (QgsFeature &feature) override |
fetch next feature, return true on success | |
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. | |
void | prepareExpressions () |
void | prepareJoins () |
virtual bool | prepareSimplification (const QgsSimplifyMethod &simplifyMethod) override |
Setup the simplification of geometries to fetch using the specified simplify method. | |
void | rewindEditBuffer () |
void | updateChangedAttributes (QgsFeature &f) |
Update feature with uncommited attribute updates. | |
void | updateFeatureGeometry (QgsFeature &f) |
Update feature with uncommited geometry updates. | |
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() | |
Protected Member Functions inherited from QgsAbstractFeatureIterator | |
void | deref () |
remove reference, delete if refs == 0 | |
virtual bool | nextFeatureFilterFids (QgsFeature &f) |
By default, the iterator will fetch all features and check if the id is in the request. | |
void | ref () |
add reference |
Protected Attributes | |
QgsFeatureIterator | mChangedFeaturesIterator |
QgsFeatureRequest | mChangedFeaturesRequest |
QMap< int, QgsExpression * > | mExpressionFieldInfo |
QgsFeatureMap::ConstIterator | mFetchAddedFeaturesIt |
QgsGeometryMap::ConstIterator | mFetchChangedGeomIt |
QSet< QgsFeatureId > | mFetchConsidered |
bool | mFetchedFid |
QMap< const QgsVectorJoinInfo *, FetchJoinInfo > | mFetchJoinInfo |
information about joins used in the current select() statement. | |
bool | mHasVirtualAttributes |
QgsFeatureIterator | mProviderIterator |
QgsFeatureRequest | mProviderRequest |
Protected Attributes inherited from QgsAbstractFeatureIteratorFromSource< QgsVectorLayerFeatureSource > | |
bool | mOwnSource |
QgsVectorLayerFeatureSource * | mSource |
Protected Attributes inherited from QgsAbstractFeatureIterator | |
bool | mClosed |
Set to true, as soon as the iterator is closed. | |
QgsFeatureRequest | mRequest |
A copy of the feature request. | |
int | refs |
reference counting (to allow seamless copying of QgsFeatureIterator instances) |
Definition at line 69 of file qgsvectorlayerfeatureiterator.h.
QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator | ( | QgsVectorLayerFeatureSource * | source, |
bool | ownSource, | ||
const QgsFeatureRequest & | request | ||
) |
Definition at line 88 of file qgsvectorlayerfeatureiterator.cpp.
QgsVectorLayerFeatureIterator::~QgsVectorLayerFeatureIterator | ( | ) |
Definition at line 152 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 527 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 547 of file qgsvectorlayerfeatureiterator.cpp.
|
overridevirtual |
end of iterating: free the resources / lock
Implements QgsAbstractFeatureIterator.
Definition at line 256 of file qgsvectorlayerfeatureiterator.cpp.
|
overrideprotectedvirtual |
fetch next feature, return true on success
Implements QgsAbstractFeatureIterator.
Definition at line 164 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 272 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 352 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 325 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 716 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 88 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 490 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 435 of file qgsvectorlayerfeatureiterator.cpp.
|
overrideprotectedvirtual |
Setup the simplification of geometries to fetch using the specified simplify method.
Reimplemented from QgsAbstractFeatureIterator.
Definition at line 569 of file qgsvectorlayerfeatureiterator.cpp.
|
overridevirtual |
reset the iterator to the starting position
Implements QgsAbstractFeatureIterator.
Definition at line 238 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 425 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Update feature with uncommited attribute updates.
Definition at line 757 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Update feature with uncommited geometry updates.
Definition at line 779 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 296 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 380 of file qgsvectorlayerfeatureiterator.cpp.
|
protected |
Definition at line 97 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 96 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 153 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 103 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 102 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 101 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 105 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 151 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 155 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 95 of file qgsvectorlayerfeatureiterator.h.
|
protected |
Definition at line 94 of file qgsvectorlayerfeatureiterator.h.