QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Wrapper for iterator of features from vector data provider or vector layer. More...
#include <qgsfeatureiterator.h>
Public Member Functions | |
QgsFeatureIterator () | |
construct invalid iterator More... | |
QgsFeatureIterator (QgsAbstractFeatureIterator *iter) | |
construct a valid iterator More... | |
QgsFeatureIterator (const QgsFeatureIterator &fi) | |
copy constructor copies the iterator, increases ref.count More... | |
~QgsFeatureIterator () | |
destructor deletes the iterator if it has no more references More... | |
bool | close () |
QgsAbstractFeatureIterator::CompileStatus | compileStatus () const |
Returns the status of expression compilation for filter expression requests. More... | |
bool | isClosed () const |
find out whether the iterator is still valid or closed already More... | |
bool | nextFeature (QgsFeature &f) |
QgsFeatureIterator & | operator= (const QgsFeatureIterator &other) |
bool | rewind () |
void | setInterruptionChecker (QgsInterruptionChecker *interruptionChecker) |
Attach an object that can be queried regularly by the iterator to check if it must stopped. More... | |
Protected Attributes | |
QgsAbstractFeatureIterator * | mIter |
Friends | |
bool | operator!= (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2) |
bool | operator== (const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2) |
Wrapper for iterator of features from vector data provider or vector layer.
Definition at line 209 of file qgsfeatureiterator.h.
|
inline |
construct invalid iterator
Definition at line 253 of file qgsfeatureiterator.h.
|
inline |
construct a valid iterator
Definition at line 258 of file qgsfeatureiterator.h.
|
inline |
copy constructor copies the iterator, increases ref.count
Definition at line 265 of file qgsfeatureiterator.h.
|
inline |
destructor deletes the iterator if it has no more references
Definition at line 272 of file qgsfeatureiterator.h.
|
inline |
Definition at line 291 of file qgsfeatureiterator.h.
|
inline |
Returns the status of expression compilation for filter expression requests.
Definition at line 242 of file qgsfeatureiterator.h.
|
inline |
find out whether the iterator is still valid or closed already
Definition at line 299 of file qgsfeatureiterator.h.
|
inline |
Definition at line 278 of file qgsfeatureiterator.h.
QgsFeatureIterator & QgsFeatureIterator::operator= | ( | const QgsFeatureIterator & | other | ) |
Definition at line 199 of file qgsfeatureiterator.cpp.
|
inline |
Definition at line 283 of file qgsfeatureiterator.h.
|
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.
Definition at line 314 of file qgsfeatureiterator.h.
|
friend |
Definition at line 309 of file qgsfeatureiterator.h.
|
friend |
Definition at line 304 of file qgsfeatureiterator.h.
|
protected |
Definition at line 248 of file qgsfeatureiterator.h.