SciDAVis  1.D4
Private Member Functions
Interval< double > Class Template Reference

#include <Interval.h>

Inheritance diagram for Interval< double >:
IntervalBase< double >

List of all members.

Private Member Functions

 Interval ()
 Interval (double start, double end)
 Interval (const Interval< double > &other)
bool isValid () const
double size () const
bool touches (const Interval< double > &other) const
 Returns true if no gap is between two intervals.

Additional Inherited Members

- Public Member Functions inherited from IntervalBase< double >
bool contains (const Interval< double > &other) const
bool contains (doublevalue) const
double end () const
bool intersects (const Interval< double > &other) const
 IntervalBase ()
 IntervalBase (const IntervalBase< double > &other)
 IntervalBase (doublestart, doubleend)
QList< Interval< double > > operator- (QList< Interval< double > > subtrahend)
Interval< double > & operator= (const Interval< double > &other)
bool operator== (const Interval< double > &other) const
void setEnd (doubleend)
void setStart (doublestart)
double start () const
QString toString () const
 Return a string in the format '[start,end]'.
void translate (doubleoffset)
virtual ~IntervalBase ()
- Static Public Member Functions inherited from IntervalBase< double >
static Interval< double > intersection (const Interval< double > &first, const Interval< double > &second)
 Return the intersection of two intervals.
static Interval< double > merge (const Interval< double > &a, const Interval< double > &b)
 Merge two intervals that touch or intersect.
static void mergeIntervalIntoList (QList< Interval< double > > *list, Interval< double > i)
 Merge an interval into a list.
static void restrictList (QList< Interval< double > > *list, Interval< double > i)
 Restrict all intervals in the list to their intersection with a given interval.
static QList< Interval< double > > split (const Interval< double > &i, doublebefore)
 Split an interval into two.
static QList< Interval< double > > subtract (const Interval< double > &src_iv, const Interval< double > &minus_iv)
 Subtract an interval from another.
static void subtractIntervalFromList (QList< Interval< double > > *list, Interval< double > i)
 Subtract an interval from all intervals in the list.
- Protected Attributes inherited from IntervalBase< double >
double d_end
 Interval end.
double d_start
 Interval start.

Constructor & Destructor Documentation

Interval< double >::Interval ( )
inlineprivate
Interval< double >::Interval ( double  start,
double  end 
)
inlineprivate
Interval< double >::Interval ( const Interval< double > &  other)
inlineprivate

Member Function Documentation

bool Interval< double >::isValid ( ) const
inlineprivate
double Interval< double >::size ( ) const
inlineprivate
bool Interval< double >::touches ( const Interval< double > &  other) const
inlineprivatevirtual

Returns true if no gap is between two intervals.

Implements IntervalBase< double >.

References IntervalBase< T >::end(), and IntervalBase< T >::start().


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