MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setAsRelative

Method setAsRelative

src/utilities/units/Quantity.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void Quantity::setAsRelative() {
136 OptionalTemperatureUnit tu = m_units.optionalCast<TemperatureUnit>();
137 if (!tu) {
138 LOG_AND_THROW("Could not Quantity::setAsRelative for quantity " << *this << " because it is in system " << system().valueName()
139 << ", not Celsius or Fahrenheit.");
140 }
141 tu->setAsRelative();
142}
143
144void Quantity::lbmToLbf() {
145 OptionalIPUnit iu = m_units.optionalCast<IPUnit>();

Callers 9

unitsMethod · 0.45
convertMethod · 0.45
createUnitSimpleMethod · 0.45
Quantity.cppFile · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

valueNameMethod · 0.80

Tested by 5

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36