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

Function GetNamedDerivedObject

Modules/Core/include/mitkDataStorage.h:288–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 */
287 template <class DataType>
288 DataType *GetNamedDerivedObject(const char *name,
289 const DataNode *sourceNode,
290 bool onlyDirectDerivations = true) const
291 {
292 if (name == nullptr)
293 return nullptr;
294 DataNode *n = this->GetNamedDerivedNode(name, sourceNode, onlyDirectDerivations);
295 if (n == nullptr)
296 return nullptr;
297 else
298 return dynamic_cast<DataType *>(n->GetData());
299 }
300
301 /**
302 * \brief Generate a unique node name by appending an incrementing number if necessary.

Callers

nothing calls this directly

Calls 2

GetNamedDerivedNodeMethod · 0.80
GetDataMethod · 0.45

Tested by

no test coverage detected