MCPcopy Create free account
hub / github.com/MITK/MITK / Assignable

Method Assignable

Modules/Core/src/DataManagement/mitkMaterial.cpp:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool mitk::Material::Assignable(const Material &other) const
119{
120 try
121 {
122 const auto &otherinstance =
123 dynamic_cast<const Self &>(other); // dear compiler, please don't optimize this away! Thanks.
124 otherinstance.GetOpacity();
125 return true;
126 }
127 catch (const std::bad_cast &)
128 {
129 }
130 return false;
131}
132
133mitk::Material &mitk::Material::operator=(const mitk::Material &other)
134{

Callers 1

testAssignableMethod · 0.80

Calls 1

GetOpacityMethod · 0.45

Tested by 1

testAssignableMethod · 0.64