LibrePCB Developers Documentation
|
The BoundedUnsignedRatio class represents a ratio limited to a range specified by min/max values. More...
#include <boundedunsignedratio.h>
Public Member Functions | |
BoundedUnsignedRatio ()=delete | |
BoundedUnsignedRatio (const BoundedUnsignedRatio &other) noexcept | |
BoundedUnsignedRatio (const UnsignedRatio &ratio, const UnsignedLength &min, const UnsignedLength &max) | |
BoundedUnsignedRatio (const SExpression &node) | |
~BoundedUnsignedRatio () noexcept | |
const UnsignedRatio & | getRatio () const noexcept |
const UnsignedLength & | getMinValue () const noexcept |
const UnsignedLength & | getMaxValue () const noexcept |
UnsignedLength | calcValue (const Length &input) const noexcept |
void | serialize (SExpression &root) const |
BoundedUnsignedRatio & | operator= (const BoundedUnsignedRatio &rhs) noexcept |
bool | operator== (const BoundedUnsignedRatio &rhs) const noexcept |
bool | operator!= (const BoundedUnsignedRatio &rhs) const noexcept |
Private Member Functions | |
void | throwIfInvalid () const |
Private Attributes | |
UnsignedRatio | mRatio |
UnsignedLength | mMinValue |
UnsignedLength | mMaxValue |
The BoundedUnsignedRatio class represents a ratio limited to a range specified by min/max values.
|
delete |
|
noexcept |
BoundedUnsignedRatio | ( | const UnsignedRatio & | ratio, |
const UnsignedLength & | min, | ||
const UnsignedLength & | max | ||
) |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |