Lines Matching defs:unit
51 ExpressionEvaluator::ExpressionEvaluator(const char *string, Unit const *unit) :
53 unit(unit)
63 * analysis, and basic unit conversions.
66 * base-unit. This is also the unit of the returned value.
68 * Returns: An EvaluatorQuantity with a value given in the base unit along with
69 * the order of the dimension (e.g. if the base unit is inches, a dimension
94 resolveUnit(NULL, &default_unit_factor, unit);
96 // Entire expression is dimensionless, apply default unit if applicable
118 // If dimensions mismatch, attempt default unit assignent
122 resolveUnit(NULL, &default_unit_factor, unit);
230 if (resolveUnit(identifier, &result, unit)) {
363 Unit const* unit)
365 if (!unit) {
371 result->dimension = unit->isAbsolute() ? 1 : 0;
375 result->value = Quantity::convert(1, unit, identifier_unit);