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

Method generalize

src/ifcparse/aggregate_of_instance.h:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 it end() { return list_.end(); }
84 size_t size() const { return list_.size(); }
85 aggregate_of_instance::ptr generalize() {
86 aggregate_of_instance::ptr result(new aggregate_of_instance());
87 for (it i = begin(); i != end(); ++i) {
88 result->push((*i)->template as<IfcUtil::IfcBaseClass>());
89 }
90 return result;
91 }
92 bool contains(T* type) const { return std::find(list_.begin(), list_.end(), type) != list_.end(); }
93 template <class U>
94 typename U::list::ptr as() {

Callers 8

find_openingsMethod · 0.45
get_representationsMethod · 0.45
get_children_of_relationFunction · 0.45
create_testcase_forFunction · 0.45
create_curve_rebarFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

beginFunction · 0.70
endFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected