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

Method unique

src/ifcparse/IfcUtil.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113aggregate_of_instance::ptr aggregate_of_instance::unique() {
114 std::set<IfcUtil::IfcBaseClass*> encountered;
115 aggregate_of_instance::ptr return_value(new aggregate_of_instance);
116 for (it it = begin(); it != end(); ++it) {
117 if (encountered.find(*it) == encountered.end()) {
118 return_value->push(*it);
119 encountered.insert(*it);
120 }
121 }
122 return return_value;
123}
124
125/*
126//Note: some of these methods are overloaded in derived classes

Callers 5

convert_to_ifcFunction · 0.80
substitute_with_boxMethod · 0.80
create_mappingMethod · 0.80
process_chunkMethod · 0.80

Calls 6

beginFunction · 0.70
endFunction · 0.70
findMethod · 0.45
endMethod · 0.45
pushMethod · 0.45
insertMethod · 0.45

Tested by 1