Im sorry but I still don't understand it: Say we have a tree of nodes. For being able to represent that list of nodes into a tree we must have first assigned a position for each node into the tree, therefore, that position is a piece of information we have out there.
Given we have the information on how to put each node (also cloned ones) one after another, the deleting process would consist only on reading that information backwards, then deleting through that reference. For being able to do so, we might have to create a temporary list which assigns positions backwards to VNode references, just when we are generating the tree out of the vnode / tree information, and then operate with them. Then for instance a delete operation would be to remove that position from the VNode positions lists, if it happens to be a clone (it has several positions) it will be erased one of its positions, if its a single node, it will be deleted too. A move operation (or move several) would mean to change the position of the selected vnodes and the ones in-between them, and then regenerating the tree on the new information. Which is the part I am assuming wrong? On Friday, May 17, 2013 2:12:02 PM UTC+2, Edward K. Ream wrote: > > On Thu, May 16, 2013 at 2:36 AM, Fidel Pérez <[email protected]<javascript:> > > wrote: > >> In my opinion (Leo-Ignorant one) it should be easy to just refer all the >> nodes to their absolute position on the tree. > > > That would be possible only if clones did not exist. The present (and > final) scheme is the third or fourth major revision to how Leo represents > clones. Every node (vnode) exists only once, no matter how many clones > there are. Positions are the glue that makes it possible to show nodes > multiple (arbitrarily many) times in the expansion of an outline. > > I'll discuss the issues involved in deleting nodes in another post in this > thread. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
