| 1822 | } |
| 1823 | |
| 1824 | aggregate_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? |
no test coverage detected