#1732 0.7 IfcBaseClass::identity()

This commit is contained in:
Thomas Krijnen
2021-09-11 12:59:48 +02:00
parent d99caf15e6
commit 7661899e9d
4 changed files with 26 additions and 27 deletions
+1 -11
View File
@@ -236,17 +236,7 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
}
bool __eq__(IfcUtil::IfcBaseClass* other) const {
if ($self == other) {
return true;
}
if (!$self->declaration().as_entity() || !other->declaration().as_entity()) {
/// @todo
return false;
} else {
IfcUtil::IfcBaseEntity* self_ = (IfcUtil::IfcBaseEntity*) self;
IfcUtil::IfcBaseEntity* other_ = (IfcUtil::IfcBaseEntity*) other;
return self_->data().id() == other_->data().id() && self_->data().file == other_->data().file;
}
return $self->identity() == other->identity();
}
std::string __repr__() const {