| 1762 | }; |
| 1763 | |
| 1764 | void push_back(int level, IfcUtil::IfcBaseClass* instance) { |
| 1765 | if (mode_ == 0) { |
| 1766 | list_->push(instance); |
| 1767 | } else { |
| 1768 | auto& l = instances_by_level_[level]; |
| 1769 | if (!l) { |
| 1770 | l.reset(new aggregate_of_instance); |
| 1771 | } |
| 1772 | l->push(instance); |
| 1773 | } |
| 1774 | } |
| 1775 | |
| 1776 | aggregate_of_instance::ptr get_list() const { |
| 1777 | if (mode_ == 0) { |