| 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 | } |
no test coverage detected