5 #ifndef RECAST_INTSCALE_H
6 #define RECAST_INTSCALE_H
22 inline int scale() const noexcept {
39 inline T
apply(T value)
const noexcept {
49 return _scale == other._scale &&
_mode == other._mode;
53 return !(*
this == other);
62 #endif //RECAST_INTSCALE_H
bool isUpscale() const noexcept
Definition: IntScale.hpp:30
T apply(T value) const noexcept
Definition: IntScale.hpp:39
bool isDownscale() const noexcept
Definition: IntScale.hpp:34
Mode _mode
Definition: IntScale.hpp:58
T invertApply(T value) const noexcept
Definition: IntScale.hpp:44
Mode
Definition: IntScale.hpp:15
bool operator!=(const IntScale &other) const noexcept
Definition: IntScale.hpp:52
int _scale
Definition: IntScale.hpp:57
IntScale(int scale, Mode mode)
Definition: IntScale.hpp:19
Definition: IntScale.hpp:13
Mode mode() const noexcept
Definition: IntScale.hpp:26
int scale() const noexcept
Definition: IntScale.hpp:22
Definition: IntScale.hpp:16
bool operator==(const IntScale &other) const noexcept
Definition: IntScale.hpp:48
Definition: IntScale.hpp:16