• Home
  • Raw
  • Download

Lines Matching refs:C2SupportedRange

58 class C2SupportedRange {
73 inline static constexpr C2SupportedRange<T> None() {
74 return C2SupportedRange(MAX_VALUE, MIN_VALUE);
80 inline static constexpr C2SupportedRange<T> Any() {
81 return C2SupportedRange(MIN_VALUE, MAX_VALUE);
89 inline static constexpr C2SupportedRange<T> EqualTo(T value) {
90 return C2SupportedRange(value, value);
98 inline static C2SupportedRange<T> GreaterThan(T value) {
101 C2SupportedRange(std::nextafter(value, MAX_VALUE), MAX_VALUE) :
102 C2SupportedRange(value + MIN_STEP, MAX_VALUE));
110 inline static constexpr C2SupportedRange<T> GreaterThanOrEqualTo(T value) {
111 return C2SupportedRange(value, MAX_VALUE);
120 inline static constexpr C2SupportedRange<T> NotLessThan(T value) {
129 inline static constexpr C2SupportedRange<T> LessThanOrEqualTo(T value) {
130 return C2SupportedRange(MIN_VALUE, value);
139 inline static constexpr C2SupportedRange<T> NotGreaterThan(T value) {
148 inline static C2SupportedRange<T> LessThan(T value) {
151 C2SupportedRange(MIN_VALUE, std::nextafter(value, MIN_VALUE)) :
152 C2SupportedRange(MIN_VALUE, value - MIN_STEP));
164 C2SupportedRange<T> InRange(T min, T max, T step = MIN_STEP) {
165 return C2SupportedRange(min, max, step);
179 C2SupportedRange<T> InSeries(T min, T max, T num, T denom) {
180 return C2SupportedRange(min, max, 0, num, denom);
195 C2SupportedRange<T> InMacSeries(T min, T max, T step, T num, T denom) {
196 return C2SupportedRange(min, max, step, num, denom);
205 C2SupportedRange(const C2FieldSupportedValues &values);
237 C2SupportedRange<T> limitedTo(const C2SupportedRange<T> &limit) const;
312 …constexpr C2_HIDE C2SupportedRange(T min, T max, T step = T(std::is_floating_point<T>::value ? 0 :…
327 constexpr C2_HIDE C2SupportedRange(T min, T max, T step, T num, T den)
543 C2SupportedValueSet<T> limitedTo(const C2SupportedRange<T> &limit) const;
684 return limitTo(C2SupportedRange<T>::GreaterThan(value));
691 return limitTo(C2SupportedRange<T>::GreaterThanOrEqualTo(value));
698 return limitTo(C2SupportedRange<T>::NotLessThan(value));
705 return limitTo(C2SupportedRange<T>::LessThanOrEqualTo(value));
712 return limitTo(C2SupportedRange<T>::NotGreaterThan(value));
719 return limitTo(C2SupportedRange<T>::LessThan(value));
728 return limitTo(C2SupportedRange<T>::InRange(min, max, step));
736 return limitTo(C2SupportedRange<T>::InSeries(min, max, num, denom));
744 return limitTo(C2SupportedRange<T>::InMacSeries(min, max, step, num, denom));
797 C2ParamFieldValuesBuilder<T> &limitTo(const C2SupportedRange<T> &limit);