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

Method traverse

src/ifcparse/IfcParse.cpp:1824–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822}
1823
1824aggregate_of_instance::ptr IfcParse::traverse(IfcUtil::IfcBaseClass* instance, int max_level) {
1825 std::set<IfcUtil::IfcBaseClass*> visited;
1826 traversal_recorder recorder(0);
1827 traverse_(instance, visited, recorder, 0, max_level);
1828 return recorder.get_list();
1829}
1830
1831// I'm cheating this isn't breadth-first, but rather we record visited instances
1832// keeping track of their rank and return a list ordered by rank. Is this equivalent?

Callers 12

tests.pyFile · 0.45
step_implFunction · 0.45
patchMethod · 0.45
patchMethod · 0.45
patchMethod · 0.45
import_stylesMethod · 0.45
create_cameraMethod · 0.45

Calls 2

traverse_Function · 0.85
get_listMethod · 0.80

Tested by

no test coverage detected