37 QCPRange(
double lower,
double upper);
39 bool operator==(
const QCPRange& other) {
return lower == other.lower && upper == other.upper; }
40 bool operator!=(
const QCPRange& other) {
return !(*
this == other); }
54 double center()
const;
56 void expand(
const QCPRange &otherRange);
58 QCPRange sanitizedForLogScale()
const;
59 QCPRange sanitizedForLinScale()
const;
60 bool contains(
double value)
const;
62 static bool validRange(
double lower,
double upper);
63 static bool validRange(
const QCPRange &range);
68 Q_DECLARE_TYPEINFO(
QCPRange, Q_MOVABLE_TYPE);
154 #endif // QCP_RANGE_H