QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
QgsRange which stores a range of double values. More...
#include <qgsrange.h>
Public Member Functions | |
QgsDoubleRange (double lower=std::numeric_limits< double >::lowest(), double upper=std::numeric_limits< double >::max(), bool includeLower=true, bool includeUpper=true) | |
Constructor for QgsDoubleRange. | |
bool | isInfinite () const |
Returns true if the range consists of all possible values. | |
bool | operator!= (const QgsDoubleRange &other) const |
bool | operator== (const QgsDoubleRange &other) const |
Public Member Functions inherited from QgsRange< double > | |
QgsRange (double lower, double upper, bool includeLower=true, bool includeUpper=true) | |
Constructor for QgsRange. | |
bool | contains (const QgsRange< double > &other) const |
Returns true if this range contains another range. | |
bool | contains (double element) const |
Returns true if this range contains a specified element. | |
bool | includeLower () const |
Returns true if the lower bound is inclusive, or false if the lower bound is exclusive. | |
bool | includeUpper () const |
Returns true if the upper bound is inclusive, or false if the upper bound is exclusive. | |
bool | isEmpty () const |
Returns true if the range is empty, ie the lower bound equals (or exceeds) the upper bound and either the bounds are exclusive. | |
bool | isSingleton () const |
Returns true if the range consists only of a single value or instant. | |
double | lower () const |
Returns the lower bound of the range. | |
bool | operator!= (const QgsRange< double > &other) const |
bool | operator== (const QgsRange< double > &other) const |
bool | overlaps (const QgsRange< double > &other) const |
Returns true if this range overlaps another range. | |
double | upper () const |
Returns the upper bound of the range. | |
Additional Inherited Members | |
Protected Attributes inherited from QgsRange< double > | |
bool | mIncludeLower |
bool | mIncludeUpper |
double | mLower |
double | mUpper |
QgsRange which stores a range of double values.
Definition at line 202 of file qgsrange.h.
|
inline |
Constructor for QgsDoubleRange.
The lower and upper bounds are specified, and optionally whether or not these bounds are included in the range.
The default values for lower and upper construct an infinite range (see isInfinite()).
Definition at line 216 of file qgsrange.h.
|
inline |
Returns true
if the range consists of all possible values.
Definition at line 247 of file qgsrange.h.
|
inline |
Definition at line 271 of file qgsrange.h.
|
inline |
Definition at line 263 of file qgsrange.h.