![]() |
RDKit
Open-source cheminformatics and machine learning.
|
lazy file parser for TDT files More...
#include <MolSupplier.h>
Public Types | |
| using | iterator = RandomAccessSupplierIter<TDTMolSupplier> |
| using | reverse_iterator = std::reverse_iterator<iterator> |
Public Member Functions | |
| TDTMolSupplier (const std::string &fileName, const TDTMolSupplierParams ¶ms=TDTMolSupplierParams()) | |
| TDTMolSupplier (std::istream *inStream, bool takeOwnership=true, const TDTMolSupplierParams ¶ms=TDTMolSupplierParams()) | |
| TDTMolSupplier () | |
| ~TDTMolSupplier () override | |
| void | setData (const std::string &text, const TDTMolSupplierParams ¶ms=TDTMolSupplierParams()) |
| void | init () override |
| void | reset () override |
| std::unique_ptr< RWMol > | next () override |
| bool | atEnd () override |
| void | moveTo (unsigned int idx) |
| std::unique_ptr< RWMol > | operator[] (unsigned int idx) |
| std::shared_ptr< RWMol > | getShared (unsigned int idx) |
| std::string | getItemText (unsigned int idx) |
| returns the text block for a particular item | |
| unsigned int | length () |
| iterator | begin () |
| iterator | end () |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| void | setCaching (bool val) |
| bool | getCaching () const |
Public Member Functions inherited from RDKit::v2::FileParsers::MolSupplier | |
| MolSupplier () | |
| virtual | ~MolSupplier () |
| virtual void | close () |
Additional Inherited Members | |
Protected Member Functions inherited from RDKit::v2::FileParsers::MolSupplier | |
| std::istream * | openAndCheckStream (const std::string &filename) |
Protected Attributes inherited from RDKit::v2::FileParsers::MolSupplier | |
| std::istream * | dp_inStream = nullptr |
| bool | df_owner = false |
lazy file parser for TDT files
Definition at line 561 of file MolSupplier.h.
Definition at line 574 of file MolSupplier.h.
| using RDKit::v2::FileParsers::TDTMolSupplier::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 575 of file MolSupplier.h.
|
explicit |
| fileName | - the name of the TDT file |
| params | - TDTMolSupplierParams object controlling how the file itself and the individual records are parsed. |
|
explicit |
| RDKit::v2::FileParsers::TDTMolSupplier::TDTMolSupplier | ( | ) |
|
inlineoverride |
Definition at line 589 of file MolSupplier.h.
References RDKit::v2::FileParsers::MolSupplier::close().
|
overridevirtual |
Implements RDKit::v2::FileParsers::MolSupplier.
|
inline |
Definition at line 607 of file MolSupplier.h.
Referenced by rend().
|
inline |
|
inline |
Definition at line 613 of file MolSupplier.h.
| std::string RDKit::v2::FileParsers::TDTMolSupplier::getItemText | ( | unsigned int | idx | ) |
returns the text block for a particular item
| idx | - which item to return |
| std::shared_ptr< RWMol > RDKit::v2::FileParsers::TDTMolSupplier::getShared | ( | unsigned int | idx | ) |
|
overridevirtual |
Implements RDKit::v2::FileParsers::MolSupplier.
| unsigned int RDKit::v2::FileParsers::TDTMolSupplier::length | ( | ) |
Referenced by end().
| void RDKit::v2::FileParsers::TDTMolSupplier::moveTo | ( | unsigned int | idx | ) |
|
overridevirtual |
Implements RDKit::v2::FileParsers::MolSupplier.
| std::unique_ptr< RWMol > RDKit::v2::FileParsers::TDTMolSupplier::operator[] | ( | unsigned int | idx | ) |
|
inline |
Definition at line 609 of file MolSupplier.h.
References end().
|
inline |
Definition at line 610 of file MolSupplier.h.
References begin().
|
overridevirtual |
Implements RDKit::v2::FileParsers::MolSupplier.
|
inline |
Definition at line 612 of file MolSupplier.h.
| void RDKit::v2::FileParsers::TDTMolSupplier::setData | ( | const std::string & | text, |
| const TDTMolSupplierParams & | params = TDTMolSupplierParams() ) |