9class CommandRationalRange {
12 enum class BoundType : uchar {
18 enum class ValueType :
int {
27 ::ll::TypedStorage<4, 16, ::std::variant<::CommandIntegerRange, ::CommandFloatRange>> mRange;
28 ::ll::TypedStorage<4, 4, ::CommandRationalRange::ValueType> mValueType;
29 ::ll::TypedStorage<1, 1, ::CommandRationalRange::BoundType> mBoundType;
30 ::ll::TypedStorage<1, 1, bool> mInvert;
31 ::ll::TypedStorage<1, 1, bool> mInclusive;
37 MCAPI CommandRationalRange();
39 MCAPI CommandRationalRange(
float minFloatVal,
float maxFloatVal,
bool invert,
bool inclusive);
41 MCAPI CommandRationalRange(
int minIntVal,
int maxIntVal,
bool invert,
bool inclusive);
43 MCAPI ::CommandRationalRange changeToValueType(::CommandRationalRange::ValueType
const& valueType);
45 MCAPI ::std::variant<int, float> getMaxValue()
const;
47 MCAPI ::std::variant<int, float> getMinValue()
const;
49 MCAPI
bool hasBoundType(::CommandRationalRange::BoundType
const& type)
const;
51 MCAPI
bool isOfValueType(::CommandRationalRange::ValueType
const& valueType)
const;
53 MCAPI
bool isWithinRange(::std::variant<int, float>
const& value)
const;
55 MCAPI
void resetToValueType(::CommandRationalRange::ValueType
const& valueType);
57 MCAPI
void setInvert(
bool val);
59 MCAPI
void setValue(::std::variant<int, float>
const& value, ::CommandRationalRange::BoundType
const& type);
67 MCAPI
void* $ctor(
float minFloatVal,
float maxFloatVal,
bool invert,
bool inclusive);
69 MCAPI
void* $ctor(
int minIntVal,
int maxIntVal,
bool invert,
bool inclusive);