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< float > Class Reference

#include <Interval.h>

Inheritance diagram for Interval< float >:
[legend]
Collaboration diagram for Interval< float >:
[legend]

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from IntervalBase< float >
static Interval< float > intersection (const Interval< float > &first, const Interval< float > &second)
 Return the intersection of two intervals. More...
 
static Interval< float > merge (const Interval< float > &a, const Interval< float > &b)
 Merge two intervals that touch or intersect. More...
 
static QVector< Interval< float > > subtract (const Interval< float > &src_iv, const Interval< float > &minus_iv)
 Subtract an interval from another. More...
 
static QVector< Interval< float > > split (const Interval< float > &i, float before)
 Split an interval into two. More...
 
static void mergeIntervalIntoList (QVector< Interval< float > > *list, Interval< float > i)
 Merge an interval into a list. More...
 
static void restrictList (QVector< Interval< float > > *list, Interval< float > i)
 Restrict all intervals in the list to their intersection with a given interval. More...
 
static void subtractIntervalFromList (QVector< Interval< float > > *list, Interval< float > i)
 Subtract an interval from all intervals in the list. More...
 
- Protected Attributes inherited from IntervalBase< float >
float m_start
 Interval start. More...
 
float m_end
 Interval end. More...
 

Detailed Description

Definition at line 230 of file Interval.h.

Constructor & Destructor Documentation

◆ Interval() [1/3]

Interval< float >::Interval ( )
inline

Definition at line 232 of file Interval.h.

◆ Interval() [2/3]

Interval< float >::Interval ( float  start,
float  end 
)
inline

Definition at line 233 of file Interval.h.

◆ Interval() [3/3]

Interval< float >::Interval ( const Interval< float > &  other)
default

Member Function Documentation

◆ isValid()

bool Interval< float >::isValid ( ) const
inline

Definition at line 236 of file Interval.h.

◆ size()

float Interval< float >::size ( ) const
inline

Definition at line 235 of file Interval.h.

◆ touches()

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

Returns true if no gap is between two intervals.

Implements IntervalBase< float >.

Definition at line 237 of file Interval.h.

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


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