Stellarium  0.16.1
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends
QCPRange Class Reference

Public Member Functions

 QCPRange (double lower, double upper)
 
bool operator== (const QCPRange &other) const
 
bool operator!= (const QCPRange &other) const
 
QCPRangeoperator+= (const double &value)
 
QCPRangeoperator-= (const double &value)
 
QCPRangeoperator*= (const double &value)
 
QCPRangeoperator/= (const double &value)
 
double size () const
 
double center () const
 
void normalize ()
 
void expand (const QCPRange &otherRange)
 
QCPRange expanded (const QCPRange &otherRange) const
 
QCPRange sanitizedForLogScale () const
 
QCPRange sanitizedForLinScale () const
 
bool contains (double value) const
 

Static Public Member Functions

static bool validRange (double lower, double upper)
 
static bool validRange (const QCPRange &range)
 

Public Attributes

double lower
 
double upper
 

Static Public Attributes

static const double minRange
 
static const double maxRange
 

Friends

const QCPRange operator+ (const QCPRange &, double)
 
const QCPRange operator+ (double, const QCPRange &)
 
const QCPRange operator- (const QCPRange &range, double value)
 
const QCPRange operator* (const QCPRange &range, double value)
 
const QCPRange operator* (double value, const QCPRange &range)
 
const QCPRange operator/ (const QCPRange &range, double value)
 

Detailed Description

Definition at line 476 of file qcustomplot.h.

Member Function Documentation

QCPRange & QCPRange::operator*= ( const double &  value)
inline

Multiplies both boundaries of the range by value.

Definition at line 489 of file qcustomplot.h.

QCPRange & QCPRange::operator+= ( const double &  value)
inline

Adds value to both boundaries of the range.

Definition at line 487 of file qcustomplot.h.

QCPRange & QCPRange::operator-= ( const double &  value)
inline

Subtracts value from both boundaries of the range.

Definition at line 488 of file qcustomplot.h.

QCPRange & QCPRange::operator/= ( const double &  value)
inline

Divides both boundaries of the range by value.

Definition at line 490 of file qcustomplot.h.

Friends And Related Function Documentation

const QCPRange operator* ( const QCPRange range,
double  value 
)
friend

Multiplies both boundaries of the range by value.

Definition at line 572 of file qcustomplot.h.

const QCPRange operator* ( double  value,
const QCPRange range 
)
friend

Multiplies both boundaries of the range by value.

Definition at line 582 of file qcustomplot.h.

const QCPRange operator+ ( const QCPRange range,
double  value 
)
friend

Adds value to both boundaries of the range.

Definition at line 542 of file qcustomplot.h.

const QCPRange operator+ ( double  value,
const QCPRange range 
)
friend

Adds value to both boundaries of the range.

Definition at line 552 of file qcustomplot.h.

const QCPRange operator- ( const QCPRange range,
double  value 
)
friend

Subtracts value from both boundaries of the range.

Definition at line 562 of file qcustomplot.h.

const QCPRange operator/ ( const QCPRange range,
double  value 
)
friend

Divides both boundaries of the range by value.

Definition at line 592 of file qcustomplot.h.


The documentation for this class was generated from the following file: