RDCode: RDKit::MolSupplier Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

# RDKit::MolSupplier Class Reference

`#include <MolSupplier.h>`

Inheritance diagram for RDKit::MolSupplier:

List of all members.

## Public Member Functions
| MolSupplier ()
virtual | ~MolSupplier ()
virtual void | init ()=0
virtual void | reset ()=0
virtual bool | atEnd ()=0
virtual ROMol * | next ()=0

## Detailed Description

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 38 of file MolSupplier.h.

## Constructor & Destructor Documentation

RDKit::MolSupplier::MolSupplier | ( |  | ) | `[inline]`

Definition at line 41 of file MolSupplier.h.

virtual RDKit::MolSupplier::~MolSupplier | ( |  | ) | `[inline, virtual]`

Definition at line 42 of file MolSupplier.h.

## Member Function Documentation

virtual void RDKit::MolSupplier::init | ( |  | ) | `[pure virtual]`

Implemented in RDKit::SDMolSupplier, RDKit::SmilesMolSupplier, and RDKit::TDTMolSupplier.

virtual void RDKit::MolSupplier::reset | ( |  | ) | `[pure virtual]`

Implemented in RDKit::SDMolSupplier, RDKit::SmilesMolSupplier, and RDKit::TDTMolSupplier.

virtual bool RDKit::MolSupplier::atEnd | ( |  | ) | `[pure virtual]`

Implemented in RDKit::SDMolSupplier, RDKit::SmilesMolSupplier, and RDKit::TDTMolSupplier.

virtual ROMol* RDKit::MolSupplier::next | ( |  | ) | `[pure virtual]`

Implemented in RDKit::SDMolSupplier, RDKit::SmilesMolSupplier, and RDKit::TDTMolSupplier.

The documentation for this class was generated from the following file:

- MolSupplier.h