Wrapper for iterator of features from vector data provider or vector layer.
More...
#include <qgsfeatureiterator.h>
Wrapper for iterator of features from vector data provider or vector layer.
Definition at line 253 of file qgsfeatureiterator.h.
◆ QgsFeatureIterator() [1/3]
QgsFeatureIterator::QgsFeatureIterator |
( |
| ) |
|
|
default |
construct invalid iterator
◆ QgsFeatureIterator() [2/3]
◆ QgsFeatureIterator() [3/3]
◆ ~QgsFeatureIterator()
QgsFeatureIterator::~QgsFeatureIterator |
( |
| ) |
|
|
inline |
◆ close()
bool QgsFeatureIterator::close |
( |
| ) |
|
|
inline |
◆ compileStatus()
Returns the status of expression compilation for filter expression requests.
- Since
- QGIS 2.16
Definition at line 324 of file qgsfeatureiterator.h.
◆ isClosed()
bool QgsFeatureIterator::isClosed |
( |
| ) |
const |
|
inline |
find out whether the iterator is still valid or closed already
Definition at line 378 of file qgsfeatureiterator.h.
◆ isValid()
bool QgsFeatureIterator::isValid |
( |
| ) |
const |
|
virtual |
Will return if this iterator is valid.
An invalid iterator was probably introduced by a failed attempt to acquire a connection or is a default constructed iterator.
- See also
- isClosed to check if the iterator successfully completed and returned all the features.
- Since
- QGIS 3.0
Definition at line 233 of file qgsfeatureiterator.cpp.
◆ nextFeature()
bool QgsFeatureIterator::nextFeature |
( |
QgsFeature & |
f | ) |
|
|
inline |
◆ operator=()
◆ rewind()
bool QgsFeatureIterator::rewind |
( |
| ) |
|
|
inline |
◆ setInterruptionChecker()
void QgsFeatureIterator::setInterruptionChecker |
( |
QgsFeedback * |
interruptionChecker | ) |
|
|
inline |
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.
- Since
- QGIS 2.16
- Note
- not available in Python bindings
Definition at line 393 of file qgsfeatureiterator.h.
◆ operator!=
◆ operator==
◆ mIter
The documentation for this class was generated from the following files: