QInterval Class Reference

List of all members.


Detailed Description

Interval of real numbers.

Author:
Adam Bryant (adam_bryant@berkeley.edu)

Public Member Functions

 QInterval (const double min, const double max)
 Constructor.
virtual ~QInterval ()
 Destructor.
bool operator< (const QInterval &interval) const
 Less than operator like std::pair.
bool Contains (const double value) const
 Return whether the interval contains a value.
bool Contains (const QInterval &interval) const
 Return whether the interval contains another interval.
double GetMax () const
 Get maximum of interval.
double GetMin () const
 Get minimum of interval.
bool Intersects (const QInterval &interval) const
 Return whether the interval intersects another interval.
double Length () const
 Get length of interval.
void SetMax (const double max)
 Set maximum of the interval.
void SetMin (const double min)
 Set minimum of the interval.

Protected Attributes

double fMax
 Maximum of interval.
double fMin
 Minimum of interval.

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

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6