Lines Matching refs:valueRange

57 void computeRandomValue (de::Random& rnd, ValueAccess dst, ConstValueRangeAccess valueRange)  in computeRandomValue()  argument
67 float minVal = valueRange.component(ndx).getMin().asFloat(); in computeRandomValue()
68 float maxVal = valueRange.component(ndx).getMax().asFloat(); in computeRandomValue()
76 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue()
77 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue()
87 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRandomValue()
88 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRandomValue()
97 computeRandomValue(rnd, dst.arrayElement(ndx), valueRange.arrayElement(ndx)); in computeRandomValue()
105 computeRandomValue(rnd, dst.member(ndx), valueRange.member(ndx)); in computeRandomValue()
125 bool isUndefinedValueRange (ConstValueRangeAccess valueRange) in isUndefinedValueRange() argument
127 switch (valueRange.getType().getBaseType()) in isUndefinedValueRange()
132 bool isFloat = valueRange.getType().getBaseType() == VariableType::TYPE_FLOAT; in isUndefinedValueRange()
136 for (int ndx = 0; ndx < valueRange.getType().getNumElements(); ndx++) in isUndefinedValueRange()
138 if (valueRange.getMin().component(ndx).asScalar() != infMin || in isUndefinedValueRange()
139 valueRange.getMax().component(ndx).asScalar() != infMax) in isUndefinedValueRange()
185 void computeRandomValueRange (GeneratorState& state, ValueRangeAccess valueRange) in computeRandomValueRange() argument
187 const VariableType& type = valueRange.getType(); in computeRandomValueRange()
197 valueRange.getMin().component(ndx).asBool() = minVal; in computeRandomValueRange()
198 valueRange.getMax().component(ndx).asBool() = maxVal; in computeRandomValueRange()
213 valueRange.getMin().component(ndx).asInt() = minVal; in computeRandomValueRange()
214 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRange()
231 valueRange.getMin().component(ndx).asFloat() = minVal; in computeRandomValueRange()
232 valueRange.getMax().component(ndx).asFloat() = maxVal; in computeRandomValueRange()
287 int getConservativeValueExprDepth (const GeneratorState& state, ConstValueRangeAccess valueRange) in getConservativeValueExprDepth() argument
291 return getTypeConstructorDepth(valueRange.getType()); in getConservativeValueExprDepth()
294 static float computeRangeLengthSum (ConstValueRangeAccess valueRange) in computeRangeLengthSum() argument
296 const VariableType& type = valueRange.getType(); in computeRangeLengthSum()
304 float minVal = valueRange.component(ndx).getMin().asFloat(); in computeRangeLengthSum()
305 float maxVal = valueRange.component(ndx).getMax().asFloat(); in computeRangeLengthSum()
313 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRangeLengthSum()
314 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRangeLengthSum()
324 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRangeLengthSum()
325 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRangeLengthSum()
334 rangeLength += computeRangeLengthSum(valueRange.arrayElement(ndx)); in computeRangeLengthSum()
342 rangeLength += computeRangeLengthSum(valueRange.member(ndx)); in computeRangeLengthSum()
353 float computeDynamicRangeWeight (ConstValueRangeAccess valueRange) in computeDynamicRangeWeight() argument
355 const VariableType& type = valueRange.getType(); in computeDynamicRangeWeight()
356 float rangeLenSum = computeRangeLengthSum(valueRange); in computeDynamicRangeWeight()