20#ifndef LIBREPCB_CORE_BOUNDEDUNSIGNEDRATIO_H
21#define LIBREPCB_CORE_BOUNDEDUNSIGNEDRATIO_H
71 return !(*
this == rhs);
The BoundedUnsignedRatio class represents a ratio limited to a range specified by min/max values.
Definition boundedunsignedratio.h:46
void throwIfInvalid() const
Definition boundedunsignedratio.cpp:104
bool operator!=(const BoundedUnsignedRatio &rhs) const noexcept
Definition boundedunsignedratio.h:70
UnsignedLength mMinValue
Definition boundedunsignedratio.h:79
const UnsignedRatio & getRatio() const noexcept
Definition boundedunsignedratio.h:59
BoundedUnsignedRatio & operator=(const BoundedUnsignedRatio &rhs) noexcept
Definition boundedunsignedratio.cpp:86
bool operator==(const BoundedUnsignedRatio &rhs) const noexcept
Definition boundedunsignedratio.cpp:94
UnsignedLength calcValue(const Length &input) const noexcept
Definition boundedunsignedratio.cpp:66
void serialize(SExpression &root) const
Definition boundedunsignedratio.cpp:76
const UnsignedLength & getMinValue() const noexcept
Definition boundedunsignedratio.h:60
BoundedUnsignedRatio()=delete
UnsignedRatio mRatio
Definition boundedunsignedratio.h:78
~BoundedUnsignedRatio() noexcept
Definition boundedunsignedratio.cpp:59
const UnsignedLength & getMaxValue() const noexcept
Definition boundedunsignedratio.h:61
UnsignedLength mMaxValue
Definition boundedunsignedratio.h:80
The Length class is used to represent a length (for example 12.75 millimeters)
Definition length.h:82
The SExpression class.
Definition sexpression.h:69
Definition occmodel.cpp:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
type_safe::constrained_type< Ratio, UnsignedRatioConstraint, UnsignedRatioVerifier > UnsignedRatio
Definition ratio.h:328