Closed AntAgna closed 7 years ago
Ok, I think I removed too much. 🔪
Just trying to get the naming right for this:
UserObject UserProperty::getObject(const UserObject& parentInstance)
Is it the parentInstance? Or just the objectInstance? The properties belong to the metaclass. So the relationship is more member than parent-child.
Yes, I wasn't sure how to name the parameter. objectInstance
is a better choice.
In order to enumerate recursively trough properties of objects, I was using the constructor
UserObject(const UserObject& parent, const UserProperty& member)
to get aUserObject
from aUserProperty
. But this constructor has been removed in commit 915bb384dd0c7.After a quick glance trough the code and the documentation, I could not find another way to get a
UserObject
from aUserProperty.
I added the simple method
UserObject UserProperty::getObject(const UserObject& parentInstance) const
, which provides this functionality without requiring parent-child information inUserObject.