Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Geom::OptInterval Class Reference

Range of real numbers that can be empty. More...

#include <interval.h>

Inheritance diagram for Geom::OptInterval:
Geom::GenericOptInterval< Coord >

Public Member Functions

constexpr OptInterval (Base const &b)
 
constexpr OptInterval (IntInterval const &i)
 Promote from IntInterval.
 
constexpr OptInterval (OptIntInterval const &i)
 Promote from OptIntInterval.
 
- Public Member Functions inherited from Geom::GenericOptInterval< Coord >
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 Public Member Functions inherited from Geom::GenericOptInterval< Coord >
static GenericOptInterval< Coordfrom_range (InputIterator start, InputIterator end)
 Create a possibly empty interval containing a range of values.
 

Detailed Description

Range of real numbers that can be empty.

Definition at line 197 of file interval.h.

Member Typedef Documentation

◆ Base

Definition at line 200 of file interval.h.

Constructor & Destructor Documentation

◆ OptInterval() [1/3]

constexpr Geom::OptInterval::OptInterval ( Base const &  b)
inlineconstexpr

Definition at line 206 of file interval.h.

◆ OptInterval() [2/3]

constexpr Geom::OptInterval::OptInterval ( IntInterval const &  i)
inlineconstexpr

Promote from IntInterval.

Definition at line 209 of file interval.h.

◆ OptInterval() [3/3]

constexpr Geom::OptInterval::OptInterval ( OptIntInterval const &  i)
inlineconstexpr

Promote from OptIntInterval.

Definition at line 211 of file interval.h.


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