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

Method unregister_inverse

src/ifcparse/IfcParse.cpp:611–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611void IfcParse::impl::in_memory_file_storage::unregister_inverse(unsigned id_from, const IfcParse::entity* from_entity, IfcUtil::IfcBaseClass* inst, int attribute_index) {
612 auto& ids = byref_excl_[{inst->id(), from_entity->index_in_schema(), attribute_index}];
613 auto iter = std::find(ids.begin(), ids.end(), id_from);
614 if (iter == ids.end()) {
615 // @todo inverses also need to be populated when multiple instances are added to a new file.
616 // throw IfcParse::IfcException("Instance not found among inverses");
617 } else {
618 ids.erase(iter);
619 }
620}
621
622namespace {
623 template <typename T>

Callers 1

operator()Method · 0.80

Calls 12

to_stringFunction · 0.85
GetMethod · 0.80
dataMethod · 0.80
resizeMethod · 0.80
to_string_fixed_widthFunction · 0.70
ErrorFunction · 0.70
visitFunction · 0.50
idMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected