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

Function contains

src/ifcparse/aggregate_of_instance.h:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 return accum;
142 }
143 bool contains(IfcUtil::IfcBaseClass* instance) const {
144 for (outer_it it = begin(); it != end(); ++it) {
145 const std::vector<IfcUtil::IfcBaseClass*>& inner = *it;
146 if (std::find(inner.begin(), inner.end(), instance) != inner.end()) {
147 return true;
148 }
149 }
150 return false;
151 }
152
153 template <class U>
154 typename aggregate_of_aggregate_of<U>::ptr as();

Callers 2

containsMethod · 0.85
addMethod · 0.85

Calls 4

beginFunction · 0.70
endFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected