Package rdkit :: 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=-1e99) if size is negative, all entries will be kept in sorted order | 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__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, size, mostNeg=-1e99)
(Constructor)

source code

    if size is negative, all entries will be kept in sorted order

Overrides: object.__init__