Package CHEM :: Package search :: Module SEARCH :: Class TopHeap
[hide private]
[frames] | no frames]

Class TopHeap



object --+    
         |    
      list --+
             |
            TopHeap

Instance Methods [hide private]
 
__init__(self, n=10, bubblemax=100)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__str__(self)
str(x)
 
__iter__(self)
iter(x)
 
add(self, item)
 
pop(self)
remove and return item at index (default last)

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, n=10, bubblemax=100)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new list

Overrides: list.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: object.__str__
(inherited documentation)

__iter__(self)

 
iter(x)
Overrides: list.__iter__
(inherited documentation)

pop(self)

 
remove and return item at index (default last)
Returns:
item

Overrides: list.pop
(inherited documentation)