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

Method clone

src/utilities/units/Unit.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 Unit Unit_Impl::clone() const {
58 OS_ASSERT(system() == UnitSystem::Mixed);
59 std::shared_ptr<Unit_Impl> impl(new Unit_Impl(*this));
60 return Unit(impl);
61 }
62
63 Unit Unit_Impl::cloneToMixed() const {
64 std::shared_ptr<Unit_Impl> impl(new Unit_Impl(*this));

Callers 10

OSOptionalQuantityMethod · 0.45
unitsMethod · 0.45
registerUnitMethod · 0.45
operator*Function · 0.45
operator/Function · 0.45
powFunction · 0.45
QuantityMethod · 0.45
unitsMethod · 0.45
OSQuantityVectorMethod · 0.45
unitsMethod · 0.45

Calls 1

UnitClass · 0.50

Tested by

no test coverage detected