Data class for bounded values. More...
#include <ValueBounds.h>
Public Member Functions | |
constexpr | ValueBounds (double passLower, double passUpper) |
Main constructor. More... | |
ValueBounds () | |
Default constructor yields double lowest/max pair. More... | |
bool | operator== (const ValueBounds &other) const |
Returns whether the bounds exactly equal another set of bounds. More... | |
bool | operator!= (const ValueBounds &other) const |
Negates operator ==. | |
Data Fields | |
double | lower |
double | upper |
Data class for bounded values.
|
inline |
Main constructor.
Complexity \(\Theta(1)\)
passLower | Lower end of the value boundaries |
passUpper | Upper end of the value boundaries |
std::runtime_error | If the upper value is smaller than the lower. Equalities are allowed. |
Scine::Molassembler::DistanceGeometry::ValueBounds::ValueBounds | ( | ) |
Default constructor yields double lowest/max pair.
Complexity \(\Theta(1)\)
bool Scine::Molassembler::DistanceGeometry::ValueBounds::operator== | ( | const ValueBounds & | other | ) | const |
Returns whether the bounds exactly equal another set of bounds.
Complexity \(\Theta(1)\)
other | The other bounds to compare against |