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

type 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)
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
Method Details [hide private]

__init__(self, size, mostNeg=-1e+99)
(Constructor)

source code 

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

Overrides: object.__init__