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

Method GetAllLabels

Modules/Core/src/DataManagement/mitkDataStorageService.cpp:173–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173std::vector<std::string> DataStorageService::GetAllLabels() const
174{
175 std::lock_guard<std::mutex> lock(m_Mutex);
176
177 std::vector<std::string> result;
178 result.reserve(m_Storages.size() + 1);
179 result.push_back(m_DefaultStorage.GetLabel());
180
181 for (const auto& info : m_Storages)
182 {
183 result.push_back(info.GetLabel());
184 }
185
186 return result;
187}
188
189std::vector<DataStorageReference> DataStorageService::GetAllDataStorages() const
190{

Callers 1

Calls 2

sizeMethod · 0.45
GetLabelMethod · 0.45

Tested by 1