Skip To Content ArcGIS for Developers Sign In Dashboard

StatisticRecordIterator Class


An iterator for a collection of statistic records. More...

Header: #include <StatisticRecordIterator>
Since: Esri::ArcGISRuntime 100.2

Public Functions

StatisticRecordIterator(const StatisticRecordIterator &other)
StatisticRecordIterator(StatisticRecordIterator &&other)
bool hasNext() const
bool isEmpty() const
StatisticRecord *next(QObject *parent = nullptr) const
void reset()
QList<StatisticRecord *> statisticRecords(QObject *parent = nullptr) const
StatisticRecordIterator &operator=(const StatisticRecordIterator &other)
StatisticRecordIterator &operator=(StatisticRecordIterator &&other)

Detailed Description

An iterator for a collection of statistic records.

See also StatisticRecord and StatisticsQueryResult.

Member Function Documentation


Default Constructor. Create an empty StatisticRecordIterator instance.

StatisticRecordIterator::StatisticRecordIterator(const StatisticRecordIterator &other)

Copy constructor from other StatisticRecordIterator.

StatisticRecordIterator::StatisticRecordIterator(StatisticRecordIterator &&other)

Move constructor from other StatisticRecordIterator.



bool StatisticRecordIterator::hasNext() const

Returns true if there is another statistic record available.

bool StatisticRecordIterator::isEmpty() const

Returns true if this StatisticRecordIterator is empty.

StatisticRecord *StatisticRecordIterator::next(QObject *parent = nullptr) const

Returns the next statistic record providing an optional parent.

If no parent is specified then the StatisticRecordIterator takes ownership of the returned statistic record.

void StatisticRecordIterator::reset()

Points the iterator back to the front.

QList<StatisticRecord *> StatisticRecordIterator::statisticRecords(QObject *parent = nullptr) const

Returns all statistic records in the iterator at once as a list of StatisticRecord objects, with an optional parent.

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

The parent of the StatisticRecord objects in the list will be the specified parent object. If no parent object is specified, the returned StatisticRecordIterator will be the parent.

StatisticRecordIterator &StatisticRecordIterator::operator=(const StatisticRecordIterator &other)

Assignment operator from other StatisticRecordIterator.

StatisticRecordIterator &StatisticRecordIterator::operator=(StatisticRecordIterator &&other)

Move operator from other StatisticRecordIterator.

Feedback on this topic?