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

Method filtered

src/ifcparse/IfcUtil.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96aggregate_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
113aggregate_of_instance::ptr aggregate_of_instance::unique() {
114 std::set<IfcUtil::IfcBaseClass*> encountered;

Callers 1

fix_quantitiesFunction · 0.80

Calls 6

isMethod · 0.80
beginFunction · 0.70
endFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected