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 264 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 |
◆ compileFailed()
bool QgsFeatureIterator::compileFailed |
( |
| ) |
const |
|
inline |
Indicator if there was an error when sending the compiled query to the server.
This indicates that there is something wrong with the expression compiler.
- Since
- QGIS 3.2
Definition at line 341 of file qgsfeatureiterator.h.
◆ compileStatus()
Returns the status of expression compilation for filter expression requests.
- Since
- QGIS 2.16
Definition at line 333 of file qgsfeatureiterator.h.
◆ isClosed()
bool QgsFeatureIterator::isClosed |
( |
| ) |
const |
|
inline |
find out whether the iterator is still valid or closed already
Definition at line 395 of file qgsfeatureiterator.h.
◆ isValid()
bool QgsFeatureIterator::isValid |
( |
| ) |
const |
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 239 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.
- Note
- not available in Python bindings
- Since
- QGIS 2.16
Definition at line 410 of file qgsfeatureiterator.h.
◆ operator!=
◆ operator==
◆ mIter
The documentation for this class was generated from the following files: