RDKit
Open-source cheminformatics and machine learning.
|
#include <MolSupplier.h>
Public Member Functions | |
MolSupplier () | |
virtual | ~MolSupplier () |
virtual void | init ()=0 |
virtual void | reset ()=0 |
virtual bool | atEnd ()=0 |
virtual std::unique_ptr< RWMol > | next ()=0 |
virtual void | close () |
Protected Member Functions | |
std::istream * | openAndCheckStream (const std::string &filename) |
Protected Attributes | |
std::istream * | dp_inStream = nullptr |
bool | df_owner = false |
Here are a couple of ways one can interact with MolSuppliers:
1) Lazy (ForwardIterator): while(!supplier.atEnd()){ ROMol *mol = supplier.next(); if(mol){ do something; } } 2) Random Access: for(int i=0;i<supplier.length();i++){ ROMol *mol = supplier[i]; if(mol){ do something; } }
Definition at line 63 of file MolSupplier.h.
|
inline |
Definition at line 66 of file MolSupplier.h.
|
inlinevirtual |
Definition at line 67 of file MolSupplier.h.
Definition at line 73 of file MolSupplier.h.
|
inlineprotected |
Definition at line 97 of file MolSupplier.h.
Definition at line 93 of file MolSupplier.h.
|
protected |
Definition at line 91 of file MolSupplier.h.