Package groupthink :: Module stringtree :: Class Record
[hide private]
[frames] | no frames]

Class Record

source code

Each Record is used to store one Change inside the StringTree. The purpose of a Record is contain both the Change itself, and any cached information about the current effect of that Change.

Instance Methods [hide private]
 
__init__(self, change, depth) source code
 
__str__(self) source code
 
__repr__(self) source code
Method Details [hide private]

__init__(self, change, depth)
(Constructor)

source code 
Parameters:
  • depth (int) - the number of parent edits between this edit and the root of the change tree. This state is maintained because the editing algorithm requires that the parent of a new Change not have any remaining descendants that could serve as parent instead.
  • change (Change)