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

Function GetConstProperty

Modules/ROI/src/mitkROIMapperHelper.h:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 */
105 template <class T>
106 const T* GetConstProperty(const std::string& propertyKey, const ROI::Element& roi, TimeStepType t)
107 {
108 auto property = roi.GetConstProperty(propertyKey, t);
109
110 if (property.IsNotNull())
111 return dynamic_cast<const T*>(property.GetPointer());
112
113 return nullptr;
114 }
115 }
116}
117

Callers 1

GetConstPropertyMethod · 0.50

Calls 3

IsNotNullMethod · 0.80
GetPointerMethod · 0.80
GetConstPropertyMethod · 0.45

Tested by

no test coverage detected