- /// Returns true if the given object is owner of this data (needed for correct erase of object
- /// with duplicated data)
- virtual bool isOwner(ModelAPI_Object* theOwner) = 0;
+ /// Returns the owner of htis data
+ virtual std::shared_ptr<ModelAPI_Object> owner() = 0;
+
+ /// Returns true if the object is deleted, but some data is still keept in memory
+ virtual bool isDeleted() = 0;
+
+ /// Sets true if the object is deleted, but some data is still keept in memory
+ virtual void setIsDeleted(const bool theFlag) = 0;