Skip Menu |

This queue is for tickets about the Tree-MultiNode CPAN distribution.

Report information
The Basics
Id: 2817
Status: resolved
Priority: 0/
Queue: Tree-MultiNode

People
Owner: TODDR [...] cpan.org
Requestors: yarik [...] vershynin.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: 'Move/Copy subtree' interface methods request
There's lack of 'Move/Copy subtree' interface methods. I can do this things in myself (without touching your package) by creating additional functions, but they work slower than they could due to recursive ->add_child() ->remove_child() calls istead of simple re-referecing...
[guest - Tue Jun 17 12:53:09 2003]: Show quoted text
> There's lack of 'Move/Copy subtree' interface methods. I can do this > things in myself (without touching your package) by creating > additional functions, but they work slower than they could due to > recursive ->add_child() ->remove_child() calls istead of simple re- > referecing...
What are the semantics of the move and copy interface that you are looking for? To position a handle [A] at one point in a tree, position another handle [B] in another tree and recursivly move/copy from A's tree to B? The move would be fairly straight forward. The copy, at least if implemented in the module, would be more efficient than doing it from outside the objects... Kyle
From: yarik [...] vershynin.com
[KRBURTON - Tue Jun 17 13:17:11 2003]: Show quoted text
> > There's lack of 'Move/Copy subtree' interface methods. > > ...
> > What are the semantics of the move and copy interface that you are > looking for? To position a handle [A] at one point in a tree, position > another handle [B] in another tree and recursivly move/copy from A's > tree to B?
Something like this. Show quoted text
> The move would be fairly straight forward. The copy, at least if > implemented in the module, would be more efficient than doing it from > outside the objects...
Sure, that's i'm saying about. Yaroslav.
From: toddr [...] null.net
Hi, We recently added add_child_node, which will allow a merge from 2 trees. I think this will help you some. What other features do you need if any and can you provide patches which show how you implemented them? Thanks
Please open tickets with the new features you specifically would like to see. Patches are encouraged. Thanks!