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

Method GetChildrenCount

Modules/RESTAPI/src/mitkDataStorageBridge.cpp:1398–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396 }
1397
1398 int DataStorageBridge::GetChildrenCount(const DataNode* node) const
1399 {
1400 // Note: caller must hold m_Mutex
1401 auto dataStorage = m_DataStorage.Lock();
1402 if (dataStorage.IsNull())
1403 mitkThrow() << "GetChildrenCount called without a valid DataStorage.";
1404
1405 auto derivatives = dataStorage->GetDerivations(node);
1406 return static_cast<int>(derivatives->Size());
1407 }
1408
1409}

Callers 2

GetNodesMethod · 0.95
NodeToJsonMethod · 0.95

Calls 4

GetDerivationsMethod · 0.80
LockMethod · 0.45
IsNullMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected