cellml/libcellml

Variable: have a method to retrieve the component in which a variable is defined

Opened this issue · 0 comments

Right now, if we have a variable object, we can retrieve its component using std::dynamic_pointer_cast<libcellml::Component>(variable->parent()), which is a bit cumbersome. It would therefore be nice to have a method to retrieve the owning component of a variable, e.g. variable->component().