Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Numeric interval representation data type. More...
#include <interval.h>
Public Member Functions | |
Interval ()=default | |
Initialises a new instance of the Interval class. More... | |
Interval (TYPE lower_value, TYPE upper_value) | |
Initialises a new instance of the Interval class. More... | |
TYPE | lower () const noexcept |
Gets the interval lower bound. More... | |
TYPE | upper () const noexcept |
Gets the interval upper bound. More... | |
TYPE | length () const noexcept |
Gets the interval length. More... | |
bool | contains (TYPE value) const noexcept |
Determines whether a value is in the Interval. More... | |
bool | contains (Interval< TYPE > &other) const noexcept |
Determines whether an Interval is inside this instance interval. More... | |
std::string | to_string () const noexcept |
Convert this instance to a string representation. More... | |
auto | operator<=> (const Interval< TYPE > &rhs) const =default |
Compare two Interval instances. More... | |
Numeric interval representation data type.
TYPE | The numerical type |
|
default |
Initialises a new instance of the Interval class.
|
inlineexplicit |
Initialises a new instance of the Interval class.
lower_value | Lower bound value |
upper_value | Upper bound value |
|
inlinenoexcept |
|
inlinenoexcept |
Determines whether a value is in the Interval.
value | The value to check |
|
inlinenoexcept |
Gets the interval length.
|
inlinenoexcept |
Gets the interval lower bound.
|
default |
|
inlinenoexcept |
Convert this instance to a string representation.
|
inlinenoexcept |
Gets the interval upper bound.