| Trees | Indices | Help |
|
|---|
|
|
This class generates a map from inputs to integers, where an equivalence class is defined by the trimmer function. It is just a stripped-down version of the hash class defined above. Faster and less memory consumption, if you don't need the rmap method.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
__doc__ = """This class generates a map from inputs to intege
|
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Returns an integer which is shared among all x in the equivalence class, but different from all other x. If the trimmer function raises the DontHashThis exception, it will ignore the input and return None.
|
Similar to add, except it returns None if the equivalence class has already appeared.
|
Returns an integer which is shared among all x in the equivalence class, but different from all other x.
Note: the return value is the same as add, except that this doesn't add anything: rather than increasing the size of the mapping, it raises NotInHash. |
Return the map from integers to classes.
|
| Class Variable Details |
__doc__
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:09 2011 | http://epydoc.sourceforge.net |