SciDAVis
1.D4
|
#include <Interval.h>
Private Member Functions | |
Interval () | |
Interval (long double start, long double end) | |
Interval (const Interval< long double > &other) | |
bool | isValid () const |
long double | size () const |
bool | touches (const Interval< long double > &other) const |
Returns true if no gap is between two intervals. |
Additional Inherited Members | |
Public Member Functions inherited from IntervalBase< long double > | |
bool | contains (const Interval< long double > &other) const |
bool | contains (long doublevalue) const |
long double | end () const |
bool | intersects (const Interval< long double > &other) const |
IntervalBase () | |
IntervalBase (const IntervalBase< long double > &other) | |
IntervalBase (long doublestart, long doubleend) | |
QList< Interval< long double > > | operator- (QList< Interval< long double > > subtrahend) |
Interval< long double > & | operator= (const Interval< long double > &other) |
bool | operator== (const Interval< long double > &other) const |
void | setEnd (long doubleend) |
void | setStart (long doublestart) |
long double | start () const |
QString | toString () const |
Return a string in the format '[start,end]'. | |
void | translate (long doubleoffset) |
virtual | ~IntervalBase () |
Static Public Member Functions inherited from IntervalBase< long double > | |
static Interval< long double > | intersection (const Interval< long double > &first, const Interval< long double > &second) |
Return the intersection of two intervals. | |
static Interval< long double > | merge (const Interval< long double > &a, const Interval< long double > &b) |
Merge two intervals that touch or intersect. | |
static void | mergeIntervalIntoList (QList< Interval< long double > > *list, Interval< long double > i) |
Merge an interval into a list. | |
static void | restrictList (QList< Interval< long double > > *list, Interval< long double > i) |
Restrict all intervals in the list to their intersection with a given interval. | |
static QList< Interval< long double > > | split (const Interval< long double > &i, long doublebefore) |
Split an interval into two. | |
static QList< Interval< long double > > | subtract (const Interval< long double > &src_iv, const Interval< long double > &minus_iv) |
Subtract an interval from another. | |
static void | subtractIntervalFromList (QList< Interval< long double > > *list, Interval< long double > i) |
Subtract an interval from all intervals in the list. | |
Protected Attributes inherited from IntervalBase< long double > | |
long double | d_end |
Interval end. | |
long double | d_start |
Interval start. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivatevirtual |
Returns true if no gap is between two intervals.
Implements IntervalBase< long double >.
References IntervalBase< T >::end(), and IntervalBase< T >::start().