An iterator for a collection of statistic records. More...
Header: | #include <StatisticRecordIterator.h> |
Since: | Esri::ArcGISRuntime 100.2 |
Public Functions
StatisticRecordIterator() | |
StatisticRecordIterator(const Esri::ArcGISRuntime::StatisticRecordIterator &other) | |
StatisticRecordIterator(Esri::ArcGISRuntime::StatisticRecordIterator &&other) | |
~StatisticRecordIterator() | |
bool | hasNext() const |
bool | isEmpty() const |
Esri::ArcGISRuntime::StatisticRecord * | next(QObject *parent = nullptr) const |
void | reset() |
QList<Esri::ArcGISRuntime::StatisticRecord *> | statisticRecords(QObject *parent = nullptr) const |
Esri::ArcGISRuntime::StatisticRecordIterator & | operator=(const Esri::ArcGISRuntime::StatisticRecordIterator &other) |
Esri::ArcGISRuntime::StatisticRecordIterator & | operator=(Esri::ArcGISRuntime::StatisticRecordIterator &&other) |
Detailed Description
See also StatisticRecord and StatisticsQueryResult.
Member Function Documentation
StatisticRecordIterator::StatisticRecordIterator ()
Default Constructor. Create an empty StatisticRecordIterator instance.
StatisticRecordIterator::StatisticRecordIterator (const Esri::ArcGISRuntime::StatisticRecordIterator &other)
Copy constructor from other StatisticRecordIterator.
StatisticRecordIterator::StatisticRecordIterator (Esri::ArcGISRuntime::StatisticRecordIterator &&other)
Move constructor from other StatisticRecordIterator.
StatisticRecordIterator::~StatisticRecordIterator ()
Destructor
bool StatisticRecordIterator::hasNext () const
Returns true
if there is another statistic record available.
bool StatisticRecordIterator::isEmpty () const
Returns true
if this StatisticRecordIterator is empty.
Esri::ArcGISRuntime::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<Esri::ArcGISRuntime::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.
Esri::ArcGISRuntime::StatisticRecordIterator &StatisticRecordIterator::operator=(const Esri::ArcGISRuntime::StatisticRecordIterator &other)
Assignment operator from other StatisticRecordIterator.
Esri::ArcGISRuntime::StatisticRecordIterator &StatisticRecordIterator::operator=(Esri::ArcGISRuntime::StatisticRecordIterator &&other)
Move operator from other StatisticRecordIterator.