MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / PopulateRelNestsMap

Method PopulateRelNestsMap

src/cpp/web-ifc/cache/IfcCache.cpp:89–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 std::unordered_map<uint32_t, std::vector<uint32_t>> IfcCache::PopulateRelNestsMap()
90 {
91 std::unordered_map<uint32_t, std::vector<uint32_t>> resultVector;
92 auto relNests = _loader.GetExpressIDsWithType(schema::IFCRELNESTS);
93
94 for (uint32_t relNestID : relNests)
95 {
96 _loader.MoveToArgumentOffset(relNestID, 4);
97
98 uint32_t relatingBuildingElement = _loader.GetRefArgument();
99 auto nests = _loader.GetSetArgument();
100
101 for (auto &nest : nests)
102 {
103 uint32_t nestID = _loader.GetRefArgument(nest);
104 resultVector[relatingBuildingElement].push_back(nestID);
105 }
106 }
107 return resultVector;
108 }
109
110 std::unordered_map<uint32_t, std::vector<std::pair<uint32_t, uint32_t>>> IfcCache::PopulateStyledItemMap()
111 {

Callers

nothing calls this directly

Calls 4

GetExpressIDsWithTypeMethod · 0.80
MoveToArgumentOffsetMethod · 0.80
GetRefArgumentMethod · 0.80
GetSetArgumentMethod · 0.80

Tested by

no test coverage detected