| 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); |
| 98 | for (it it = begin(); it != end(); ++it) { |
| 99 | bool contained = false; |
| 100 | for (std::set<const IfcParse::declaration*>::const_iterator jt = entities.begin(); jt != entities.end(); ++jt) { |
| 101 | if ((*it)->declaration().is(**jt)) { |
| 102 | contained = true; |
| 103 | break; |
| 104 | } |
| 105 | } |
| 106 | if (!contained) { |
| 107 | return_value->push(*it); |
| 108 | } |
| 109 | } |
| 110 | return return_value; |
| 111 | } |
| 112 | |
| 113 | aggregate_of_instance::ptr aggregate_of_instance::unique() { |
| 114 | std::set<IfcUtil::IfcBaseClass*> encountered; |