Package envi :: Module bintree :: Class BinaryTree
[hide private]
[frames] | no frames]

Class BinaryTree

source code

A simple binary search tree capable of using integers or string representations of binary integers as inputs.

NOTE: the lookup routines assume once a node is found which has nodeinfo, we have matched. It does *not* need to walk the rest of the values...

Instance Methods [hide private]
 
__init__(self) source code
 
addInt(self, intval, width, nodeinfo) source code
 
addBinstr(self, binstr, nodeinfo) source code
 
getInt(self, intval, width)
Get an element back out of the tree.
source code
 
getBinstr(self, binstr) source code
Method Details [hide private]

getInt(self, intval, width)

source code 

Get an element back out of the tree.

width is in bits...