Package Chem :: Package Fingerprints :: Module DbFpSupplier :: Class ForwardDbFpSupplier
[hide private]
[frames] | no frames]

Class ForwardDbFpSupplier

source code

        object --+        
                 |        
VLib.Node.VLibNode --+    
                     |    
          DbFpSupplier --+
                         |
                        ForwardDbFpSupplier

DbFp supplier supporting only forward iteration

>>> import os.path
>>> from Dbase.DbConnection import DbConnect
>>> fName = RDConfig.RDTestDatabase
>>> conn = DbConnect(fName,'simple_combined')
>>> suppl = ForwardDbFpSupplier(conn.GetData())

we can loop over the supplied fingerprints:
>>> fps = []
>>> for fp in suppl:
...   fps.append(fp)
>>> len(fps)
12



Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
DbResults should be a subclass of Dbase.DbResultSet.DbResultBase
source code
 
reset(self)
resets our iteration state...
source code
 
NextItem(self)
NOTE: this has side effects
source code

Inherited from DbFpSupplier: GetColumnNames, next

Inherited from DbFpSupplier (private): _BuildFp

Inherited from VLib.Node.VLibNode: AddChild, AddParent, Destroy, GetChildren, GetParents, RemoveChild, RemoveParent, __iter__

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, *args, **kwargs)
(Constructor)

source code 


DbResults should be a subclass of Dbase.DbResultSet.DbResultBase

Overrides: DbFpSupplier.__init__
(inherited documentation)

reset(self)

source code 
resets our iteration state

    

Overrides: VLib.Node.VLibNode.reset
(inherited documentation)