add getParent function
Description
Function to get the parent node
Testing Instructions
To see the if the right node is returned, use for example
myNode->getParent()->getName()
Developer Checklist
-
Code has been tested locally and/or in pipeline. -
(if applicable) documentation updated. -
(if applicable) impact of new dependencies reviewed and included in project. -
Merge conflicts resolved with the target branch.