Boost logo

Boost :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-05-22 18:28:03


"Martin Adrian" <adrianm_at_[hidden]> skrev i meddelandet
news:loom.20060522T160059-968_at_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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk