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

Function operator/

src/utilities/units/Unit.cpp:634–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634Unit operator/(const Unit& lUnit, const Unit& rUnit) {
635 Unit result = lUnit.clone();
636 if ((lUnit.system() != rUnit.system()) && (lUnit.system() != UnitSystem::Mixed)) {
637 result = lUnit.cloneToMixed();
638 }
639 result /= rUnit;
640 return result;
641}
642
643Unit pow(const Unit& rUnit, int expNum, int expDenom) {
644 Unit result = rUnit.clone();

Callers

nothing calls this directly

Calls 3

cloneToMixedMethod · 0.80
cloneMethod · 0.45
systemMethod · 0.45

Tested by

no test coverage detected