DataStructs.TopNContainer.TopNContainer

Package DataStructs :: Module TopNContainer :: Class TopNContainer |
[hide private]
[frames] | no frames]

# Class TopNContainer

source code

    object --+
             |
            TopNContainer

    maintains a sorted list of a particular number of data elements.

Instance Methods | [hide private]
__init__(self, size, mostNeg=-1e+99) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
Insert(self, val, extra=None) only does the insertion if val fits | source code
GetPts(self) returns our set of points | source code
GetExtras(self) returns our set of extras | source code
__len__(self) | source code
__getitem__(self, which) | source code
reverse(self) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, size, mostNeg=-1e+99) (Constructor) | source code
    x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__ (inherited documentation)