Skip To Content ArcGIS for Developers Sign In Dashboard

FeatureIterator Class

class Esri::ArcGISRuntime::FeatureIterator

An iterator for a collection of features. More...

Header: #include <FeatureIterator>
Since: Esri::ArcGISRuntime 100.0

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

FeatureIterator(Esri::ArcGISRuntime::FeatureIterator &&other)
FeatureIterator(const Esri::ArcGISRuntime::FeatureIterator &other)
FeatureIterator()
Esri::ArcGISRuntime::FeatureIterator &operator=(Esri::ArcGISRuntime::FeatureIterator &&other)
Esri::ArcGISRuntime::FeatureIterator &operator=(const Esri::ArcGISRuntime::FeatureIterator &other)
~FeatureIterator()
QList<Esri::ArcGISRuntime::Feature *> features(QObject *parent = nullptr) const
bool hasNext() const
bool isEmpty() const
Esri::ArcGISRuntime::Feature *next(QObject *parent = nullptr) const
void reset()

Detailed Description

See also FeatureLayer and FeatureQueryResult.

Member Function Documentation

FeatureIterator::FeatureIterator(Esri::ArcGISRuntime::FeatureIterator &&other)

Move constructor from other FeatureIterator.

FeatureIterator::FeatureIterator(const Esri::ArcGISRuntime::FeatureIterator &other)

Copy constructor from other FeatureIterator.

FeatureIterator::FeatureIterator()

Default Constructor. Create an empty FeatureIterator instance.

Esri::ArcGISRuntime::FeatureIterator &FeatureIterator::operator=(Esri::ArcGISRuntime::FeatureIterator &&other)

Move operator from other FeatureIterator.

Esri::ArcGISRuntime::FeatureIterator &FeatureIterator::operator=(const Esri::ArcGISRuntime::FeatureIterator &other)

Assignment operator from other FeatureIterator.

FeatureIterator::~FeatureIterator()

Destructor

QList<Esri::ArcGISRuntime::Feature *> FeatureIterator::features(QObject *parent = nullptr) const

Returns all features in the iterator at once as a list of Feature objects, with an optional parent.

All features in this iterator are returned in the list, regardless of whether any features were already accessed through this iterator. After this call, this FeatureIterator will point past the last feature in the iterator. To start over reading features from the beginning of this iterator, call reset.

The parent of the Feature objects in the list will be the specified parent object. If no parent object is specified, the creator of the returned FeatureIterator (either an instance of FeatureLayer or FeatureQueryResult) will be the parent.

bool FeatureIterator::hasNext() const

Returns true if there is another feature available.

bool FeatureIterator::isEmpty() const

Returns true if this FeatureIterator is empty.

Esri::ArcGISRuntime::Feature *FeatureIterator::next(QObject *parent = nullptr) const

Returns the next feature providing an optional parent.

If no parent is specified, the creator of the FeatureIterator (either an instance of FeatureLayer or FeatureQueryResult) takes ownership of the returned feature.

void FeatureIterator::reset()

Points the iterator back to the front.


Feedback on this topic?