I needed to add the c++ class explicitly as a child in the script, for example:
get_node("Node2D").add_child(c++_class_instance)
,
then use absolute paths in the c++ class , for example:
void c++_class::example_function(){ get_node("/root/Node2D")}
in order to get this to work.
Also the c++ class needs to be a subclass of Node2D or similar in order to use
get_node() like this.