
22 May
2006
22 May
'06
10:28 p.m.
"Martin Adrian" <adrianm@touchdown.se> skrev i meddelandet news:loom.20060522T160059-968@post.gmane.org...
- Add a 'name()/full_name()' method to the interface; the name() method would return the current tree 'leaf' name and the full_name() returns the complete path from the root. - Add 'parent()' method. - Add support for relative paths; e.g. ptree::get("../sibling/arg")
I think you have misunderstood the implementatation of the ptree. There are no "upward" links in the structure so there is no way for a node to know its parent or root.
I didn't misunderstand it - I was just missing the functionality from a users' viewpoint (without caring about the implementation details). // Johan