| 87 | return std::find(list_.begin(), list_.end(), instance) != list_.end(); |
| 88 | } |
| 89 | void aggregate_of_instance::remove(IfcUtil::IfcBaseClass* instance) { |
| 90 | std::vector<IfcUtil::IfcBaseClass*>::iterator iter; |
| 91 | while ((iter = std::find(list_.begin(), list_.end(), instance)) != list_.end()) { |
| 92 | list_.erase(iter); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | aggregate_of_instance::ptr aggregate_of_instance::filtered(const std::set<const IfcParse::declaration*>& entities) { |
| 97 | aggregate_of_instance::ptr return_value(new aggregate_of_instance); |