labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Interval< long double > Class Reference

#include <Interval.h>

Inheritance diagram for Interval< long double >:
[legend]
Collaboration diagram for Interval< long double >:
[legend]

Public Member Functions

 Interval ()
 
 Interval (long double start, long double end)
 
 Interval (const Interval< long double > &other)=default
 
long double size () const
 
bool isValid () const
 
bool touches (const Interval< long double > &other) const override
 Returns true if no gap is between two intervals. More...
 
- Public Member Functions inherited from IntervalBase< long double >
 IntervalBase ()
 
 IntervalBase (long double start, long double end)
 
virtual ~IntervalBase ()=default
 
long double start () const
 
long double end () const
 
void setStart (long double start)
 
void setEnd (long double end)
 
bool contains (const Interval< long double > &other) const
 
bool contains (long double value) const
 
bool fuzzyContains (long double value) const
 
bool intersects (const Interval< long double > &other) const
 
void translate (long double offset)
 
bool operator== (const Interval< long double > &other) const
 
Interval< long double > & operator= (const Interval< long double > &other)
 
QVector< Interval< long double > > operator- (QVector< Interval< long double > > subtrahend)
 
QString toString () const
 Return a string in the format '[start,end]'. More...
 

Additional Inherited Members

- 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. More...
 
static Interval< long double > merge (const Interval< long double > &a, const Interval< long double > &b)
 Merge two intervals that touch or intersect. More...
 
static QVector< Interval< long double > > subtract (const Interval< long double > &src_iv, const Interval< long double > &minus_iv)
 Subtract an interval from another. More...
 
static QVector< Interval< long double > > split (const Interval< long double > &i, long double before)
 Split an interval into two. More...
 
static void mergeIntervalIntoList (QVector< Interval< long double > > *list, Interval< long double > i)
 Merge an interval into a list. More...
 
static void restrictList (QVector< Interval< long double > > *list, Interval< long double > i)
 Restrict all intervals in the list to their intersection with a given interval. More...
 
static void subtractIntervalFromList (QVector< Interval< long double > > *list, Interval< long double > i)
 Subtract an interval from all intervals in the list. More...
 
- Protected Attributes inherited from IntervalBase< long double >
long double m_start
 Interval start. More...
 
long double m_end
 Interval end. More...
 

Detailed Description

Definition at line 256 of file Interval.h.

Constructor & Destructor Documentation

◆ Interval() [1/3]

Interval< long double >::Interval ( )
inline

Definition at line 258 of file Interval.h.

◆ Interval() [2/3]

Interval< long double >::Interval ( long double  start,
long double  end 
)
inline

Definition at line 259 of file Interval.h.

◆ Interval() [3/3]

Interval< long double >::Interval ( const Interval< long double > &  other)
default

Member Function Documentation

◆ isValid()

bool Interval< long double >::isValid ( ) const
inline

Definition at line 262 of file Interval.h.

◆ size()

long double Interval< long double >::size ( ) const
inline

Definition at line 261 of file Interval.h.

◆ touches()

bool Interval< long double >::touches ( const Interval< long double > &  other) const
inlineoverridevirtual

Returns true if no gap is between two intervals.

Implements IntervalBase< long double >.

Definition at line 263 of file Interval.h.

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


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