Inkscape
Vector Graphics Editor
|
Range of real numbers that can be empty. More...
#include <interval.h>
Public Member Functions | |
constexpr | OptInterval (Base const &b) |
constexpr | OptInterval (IntInterval const &i) |
Promote from IntInterval. | |
constexpr | OptInterval (OptIntInterval const &i) |
Promote from OptIntInterval. | |
![]() | |
constexpr bool | empty () const |
Check whether this interval is empty. | |
constexpr void | unionWith (GenericOptInterval< Coord > const &a) |
Union with another interval, gracefully handling empty ones. | |
constexpr void | intersectWith (GenericOptInterval< Coord > const &o) |
constexpr GenericOptInterval< Coord > & | operator|= (OptCInterval const &o) |
constexpr GenericOptInterval< Coord > & | operator&= (OptCInterval const &o) |
constexpr bool | operator== (U const &other) const |
constexpr bool | operator!= (U const &other) const |
constexpr | GenericOptInterval ()=default |
Create an empty interval. | |
constexpr | GenericOptInterval (GenericInterval< Coord > const &a) |
Wrap an existing interval. | |
constexpr | GenericOptInterval (Coord u) |
Create an interval containing a single point. | |
constexpr | GenericOptInterval (Coord u, Coord v) |
Create an interval containing a range of numbers. | |
Private Types | |
using | Base = GenericOptInterval< Coord > |
Additional Inherited Members | |
![]() | |
static GenericOptInterval< Coord > | from_range (InputIterator start, InputIterator end) |
Create a possibly empty interval containing a range of values. | |
![]() | |
GenericOptInterval< Coord > | intersect (GenericInterval< Coord > const &a, GenericInterval< Coord > const &b) |
Intersect two intervals and return a possibly empty range of numbers. | |
GenericOptInterval< Coord > | operator& (GenericInterval< Coord > const &a, GenericInterval< Coord > const &b) |
Intersect two intervals and return a possibly empty range of numbers. | |
Range of real numbers that can be empty.
Definition at line 197 of file interval.h.
|
private |
Definition at line 200 of file interval.h.
|
inlineconstexpr |
Definition at line 206 of file interval.h.
|
inlineconstexpr |
Promote from IntInterval.
Definition at line 209 of file interval.h.
|
inlineconstexpr |
Promote from OptIntInterval.
Definition at line 211 of file interval.h.