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

Method GetChildResources

Modules/CppMicroServices/src/usModuleResource.cpp:224–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224std::vector<ModuleResource> ModuleResource::GetChildResources() const
225{
226 std::vector<ModuleResource> childResources;
227
228 if (!IsValid() || !IsDir()) return childResources;
229
230 if (d->childNodes.empty())
231 {
232 d->resourceContainer->GetChildren(this->GetResourcePath(), true,
233 d->children, d->childNodes);
234 }
235
236 for (std::vector<uint32_t>::const_iterator iter = d->childNodes.begin(),
237 iterEnd = d->childNodes.end(); iter != iterEnd; ++iter)
238 {
239 childResources.push_back(ModuleResource(static_cast<int>(*iter), *d->resourceContainer));
240 }
241 return childResources;
242}
243
244int ModuleResource::GetSize() const
245{

Callers

nothing calls this directly

Calls 6

GetResourcePathMethod · 0.95
ModuleResourceClass · 0.70
emptyMethod · 0.45
GetChildrenMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected