MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / descend

Function descend

src/serializers/schema_dependent/JsonSerializer.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167// to descend into decomposition, containment and property relationships.
168template <typename A>
169void descend(A* instance, json& tree, IfcUtil::IfcBaseEntity* parent = nullptr) {
170 if (instance->declaration().is(IfcSchema::IfcObjectDefinition::Class())) {
171 descend(instance->template as<IfcSchema::IfcObjectDefinition>(), tree, parent);
172 } else {
173 format_entity_instance(instance, tree);
174 }
175}
176
177// @todo would be nice to generalize this with the XML version
178//

Callers 1

finalizeFunction · 0.70

Calls 6

isMethod · 0.80
format_entity_instanceFunction · 0.70
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected