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

Method isBaseUnit

src/utilities/units/Unit.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 bool Unit_Impl::isBaseUnit(const std::string& baseUnit) const {
84 auto loc = findBaseUnit(baseUnit);
85 if (loc == m_units.end()) {
86 return false;
87 }
88 return true;
89 }
90
91 int Unit_Impl::baseUnitExponent(const std::string& baseUnit) const {
92 auto loc = findBaseUnit(baseUnit);

Callers 3

parseUnitStringFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64