QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Classes | Typedefs
qgsrange.h File Reference
#include "qgis_sip.h"
#include "qgis_core.h"
#include "qgis.h"
#include <QDate>
#include <QDateTime>
Include dependency graph for qgsrange.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QgsDoubleRange
 QgsRange which stores a range of double values. More...
 
class  QgsIntRange
 QgsRange which stores a range of integer values. More...
 
class  QgsRange< T >
 A template based class for storing ranges (lower to upper values). More...
 
class  QgsTemporalRange< T >
 A template based class for storing temporal ranges (beginning to end values). More...
 

Typedefs

typedef QgsTemporalRange< QDate > QgsDateRange
 QgsRange which stores a range of dates.
 
typedef QgsTemporalRange< QDateTime > QgsDateTimeRange
 QgsRange which stores a range of date times.
 

Typedef Documentation

◆ QgsDateRange

typedef QgsTemporalRange< QDate > QgsDateRange

QgsRange which stores a range of dates.

Invalid QDates as the beginning or end are permitted. In this case, the bound is considered to be infinite. E.g. QgsDateRange(QDate(),QDate(2017,1,1)) is treated as a range containing all dates before 2017-1-1. QgsDateRange(QDate(2017,1,1),QDate()) is treated as a range containing all dates after 2017-1-1.

See also
QgsDateTimeRange

Definition at line 729 of file qgsrange.h.

◆ QgsDateTimeRange

typedef QgsTemporalRange< QDateTime > QgsDateTimeRange

QgsRange which stores a range of date times.

Invalid QDateTimes as the beginning or end are permitted. In this case, the bound is considered to be infinite. E.g. QgsDateTimeRange(QDateTime(),QDateTime(2017,1,1)) is treated as a range containing all dates before 2017-1-1. QgsDateTimeRange(QDateTime(2017,1,1),QDateTime()) is treated as a range containing all dates after 2017-1-1.

See also
QgsDateRange

Definition at line 742 of file qgsrange.h.