16 #ifndef QGSDATETIMESTATISTICALSUMMARY_H 17 #define QGSDATETIMESTATISTICALSUMMARY_H 23 #include <QVariantList> 56 All = Count | CountDistinct | CountMissing | Min | Max | Range,
87 void calculate(
const QVariantList& values );
101 void addValue(
const QVariant& value );
117 int count()
const {
return mCount; }
150 Statistics mStatistics;
158 void testDateTime(
const QDateTime& dateTime );
161 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsDateTimeStatisticalSummary::Statistics )
163 #endif // QGSDATETIMESTATISTICALSUMMARY_H int count() const
Returns the calculated count of values.
int countMissing() const
Returns the number of missing (null) datetime values.
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
void setStatistics(const Statistics &stats)
Sets flags which specify which statistics will be calculated.
Calculator for summary statistics and aggregates for a list of datetimes.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
Statistic
Enumeration of flags that specify statistics to be calculated.
A representation of the interval between two datetime values.
Statistics statistics() const
Returns flags which specify which statistics will be calculated.
QgsInterval range() const
Returns the range (interval between earliest and latest non-null datetime values).
int countDistinct() const
Returns the number of distinct datetime values.