QGIS API Documentation  3.0.2-Girona (307d082)
Classes | Typedefs
qgsrange.h File Reference
#include "qgis.h"
#include "qgis_sip.h"
#include "qgis_core.h"
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  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 QgsRange< double > QgsDoubleRange
 QgsRange which stores a range of double values. More...
 
typedef QgsRange< int > QgsIntRange
 QgsRange which stores a range of integer values. More...
 
typedef QgsTemporalRange< QDate > QgsDateRange SIP_DOC_TEMPLATE
 QgsRange which stores a range of dates. More...
 

Typedef Documentation

◆ QgsDoubleRange

typedef QgsRange< double > QgsDoubleRange

QgsRange which stores a range of double values.

Since
QGIS 3.0
See also
QgsIntRange
QgsDateRange
QgsDateTimeRange

Definition at line 186 of file qgsrange.h.

◆ QgsIntRange

typedef QgsRange< int > QgsIntRange

QgsRange which stores a range of integer values.

Since
QGIS 3.0
See also
QgsDoubleRange
QgsDateRange
QgsDateTimeRange

Definition at line 198 of file qgsrange.h.

◆ SIP_DOC_TEMPLATE

typedef QgsTemporalRange< QDateTime > QgsDateTimeRange SIP_DOC_TEMPLATE

QgsRange which stores a range of dates.

QgsRange which stores a range of date times.

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.

Since
QGIS 3.0
See also
QgsDateTimeRange

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.

Since
QGIS 3.0
See also
QgsDateRange

Definition at line 423 of file qgsrange.h.