franaisa/Tree — Issue #18: Reference counter for root and root children
Author: franaisa
Created: 2012-03-06 18:40:31+00:00
State: open

In order to copy just subtrees of the original tree we need to control the number of references to the root and root children. Whenever the root or its children has more than one reference, if they are modified, a new copy is generated and the reference counter is decremented. By now, we won't worry about the reference counting being thread safe.