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

Method instantiate

src/ifcparse/IfcSchema.cpp:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156IfcUtil::IfcBaseClass* IfcParse::schema_definition::instantiate(const IfcParse::declaration* decl, IfcEntityInstanceData&& data) const {
157 if (factory_ != nullptr) {
158 return (*factory_)(decl, std::move(data));
159 }
160 return new IfcUtil::IfcLateBoundEntity(decl, std::move(data));
161}
162
163void IfcParse::register_schema(schema_definition* schema) {
164 schemas.insert({boost::to_upper_copy(schema->name()), schema});

Callers 8

assert_existanceMethod · 0.80
createMethod · 0.80
IfcSpfHeaderMethod · 0.80
loadMethod · 0.80
read_from_streamMethod · 0.80
addEntityMethod · 0.80
start_elementFunction · 0.80
createFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected