MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getElementMappedNames

Method getElementMappedNames

src/App/ComplexGeoData.cpp:301–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301std::vector<std::pair<MappedName, ElementIDRefs>>
302ComplexGeoData::getElementMappedNames(const IndexedName& element, bool needUnmapped) const
303{
304 flushElementMap();
305 if (_elementMap) {
306 auto res = _elementMap->findAll(element);
307 if (!res.empty()) {
308 return res;
309 }
310 }
311
312 if (!needUnmapped) {
313 return {};
314 }
315 return {std::make_pair(MappedName(element), ElementIDRefs())};
316}
317
318ElementMapPtr ComplexGeoData::resetElementMap(ElementMapPtr elementMap)
319{

Callers 3

mapSubElementMethod · 0.80
TEST_FFunction · 0.80

Calls 3

findAllMethod · 0.80
MappedNameFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected