| 609 | } |
| 610 | |
| 611 | void 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 | |
| 622 | namespace { |
| 623 | template <typename T> |
no test coverage detected