RDKit
Open-source cheminformatics and machine learning.
|
#include <MolSupplier.v1API.h>
Public Member Functions | |
MolSupplier () | |
virtual | ~MolSupplier () |
void | init () |
void | reset () |
bool | atEnd () |
ROMol * | next () |
virtual void | close () |
Protected Attributes | |
std::unique_ptr< v2::FileParsers::MolSupplier > | dp_supplier |
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 36 of file MolSupplier.v1API.h.
|
inline |
Definition at line 39 of file MolSupplier.v1API.h.
|
inlinevirtual |
Definition at line 40 of file MolSupplier.v1API.h.
|
inline |
Definition at line 52 of file MolSupplier.v1API.h.
Definition at line 63 of file MolSupplier.v1API.h.
|
inline |
Definition at line 41 of file MolSupplier.v1API.h.
|
inline |
Definition at line 58 of file MolSupplier.v1API.h.
References PRECONDITION.
|
inline |
Definition at line 46 of file MolSupplier.v1API.h.
|
protected |
Definition at line 78 of file MolSupplier.v1API.h.