Class NodeHashIndex
Create new instance of a node hash index.
Constructor
-
class NodeHashIndex(nodehash[, propname])
Arguments: |
- nodehash (object) – An object implementing the node-hashing method
for the underlying document. E.g. an instance of
DOMNodeHash().
- propname (string) – The name of the property which will be used to
cache the hash values on tree.Node objects. Defaults to ‘nodehash’.
|
Methods
get
-
NodeHashIndex#get(node)
Arguments: |
- node (object) – A tree.Node.
|
Returns number: | Hash value of the tree node.
|
Return the hash value for the given node.