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

Method GetNode

Modules/Core/src/DataManagement/mitkDataStorage.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104mitk::DataNode *mitk::DataStorage::GetNode(const NodePredicateBase *condition) const
105{
106 if (condition == nullptr)
107 return nullptr;
108
109 DataStorage::SetOfObjects::ConstPointer rs = this->GetSubset(condition);
110 if (rs->Size() >= 1)
111 return rs->GetElement(0);
112 else
113 return nullptr;
114}
115
116mitk::DataNode *mitk::DataStorage::GetNamedDerivedNode(const char *name,
117 const DataNode *sourceNode,

Calls 3

GetSubsetMethod · 0.95
SizeMethod · 0.45
GetElementMethod · 0.45