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

Method as

src/ifcparse/IfcBaseClass.h:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
207template <class U>
208typename U::list::ptr aggregate_of_instance::as() {
209 typename U::list::ptr result(new typename U::list);
210 for (it i = begin(); i != end(); ++i) {
211 if ((*i)->template as<U>()) {
212 result->push((*i)->template as<U>());
213 }
214 }
215 return result;
216}
217
218template <class U>
219typename aggregate_of_aggregate_of<U>::ptr aggregate_of_aggregate_of_instance::as() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected