#include <MolSupplier.h>
Definition at line 159 of file MolSupplier.h.
◆ SDMolSupplier() [1/3]
RDKit::v2::FileParsers::SDMolSupplier::SDMolSupplier |
( |
| ) |
|
|
inline |
◆ SDMolSupplier() [2/3]
- Parameters
-
fileName | - the name of the SD file |
sanitize | - if true sanitize the molecule before returning it |
removeHs | - if true remove Hs from the molecule before returning it (triggers sanitization) |
strictParsing | - if set to false, the parser is more lax about correctness of the contents. |
◆ SDMolSupplier() [3/3]
◆ ~SDMolSupplier()
RDKit::v2::FileParsers::SDMolSupplier::~SDMolSupplier |
( |
| ) |
|
|
inlineoverride |
◆ atEnd()
bool RDKit::v2::FileParsers::SDMolSupplier::atEnd |
( |
| ) |
|
|
overridevirtual |
◆ getItemText()
std::string RDKit::v2::FileParsers::SDMolSupplier::getItemText |
( |
unsigned int |
idx | ) |
|
returns the text block for a particular item
- Parameters
-
idx | - which item to return |
◆ init()
void RDKit::v2::FileParsers::SDMolSupplier::init |
( |
| ) |
|
|
overridevirtual |
◆ length()
unsigned int RDKit::v2::FileParsers::SDMolSupplier::length |
( |
| ) |
|
◆ moveTo()
◆ next()
std::unique_ptr< RWMol > RDKit::v2::FileParsers::SDMolSupplier::next |
( |
| ) |
|
|
overridevirtual |
◆ operator[]()
std::unique_ptr< RWMol > RDKit::v2::FileParsers::SDMolSupplier::operator[] |
( |
unsigned int |
idx | ) |
|
◆ reset()
void RDKit::v2::FileParsers::SDMolSupplier::reset |
( |
| ) |
|
|
overridevirtual |
◆ setData() [1/2]
void RDKit::v2::FileParsers::SDMolSupplier::setData |
( |
const std::string & |
text | ) |
|
◆ setData() [2/2]
◆ setStreamIndices()
void RDKit::v2::FileParsers::SDMolSupplier::setStreamIndices |
( |
const std::vector< std::streampos > & |
locs | ) |
|
Resets our internal state and sets the indices of molecules in the stream. The client should be very careful about calling this method, as it's trivial to end up with a completely useless supplier.
- Parameters
-
locs | - the vector of stream positions. |
Note that this can be used not only to make reading selected molecules from a large SD file much faster, but it can also allow subsetting an SD file or rearranging the order of the molecules.
The documentation for this class was generated from the following file: