Class SimpleTreeHash
Simple subtree hashing algorithm.
Constructor
-
class SimpleTreeHash(HashAlgorithm, nodehashindex)
Arguments: |
- HashAlgorithm (function) – Constructor function for the hash
- nodehashindex (object) – An instance of NodeHashIndex()
|
Methods
process
-
SimpleTreeHash#process(node[, hash])
Arguments: |
- node (object) – A tree.Node specifying the root of the subtree.
- hash (object) – If provided, use this hash instance. Otherwise
create a new one.
|
Calculate hash value of subtree