![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Abstract base class for accessors that read the data stored in pharmacophore screening databases. More...
#include <ScreeningDBAccessor.hpp>
Inheritance diagram for CDPL::Pharm::ScreeningDBAccessor:Public Types | |
| typedef std::shared_ptr< ScreeningDBAccessor > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated ScreeningDBAccessor instances. More... | |
Public Member Functions | |
| virtual | ~ScreeningDBAccessor () |
| Virtual destructor. More... | |
| virtual void | open (const std::string &name)=0 |
| Opens the screening database identified by name. More... | |
| virtual void | close ()=0 |
| Closes the currently open database. More... | |
| virtual const std::string & | getDatabaseName () const =0 |
| Returns the name of the currently open database. More... | |
| virtual std::size_t | getNumMolecules () const =0 |
| Returns the total number of molecules stored in the database. More... | |
| virtual std::size_t | getNumPharmacophores () const =0 |
| Returns the total number of pharmacophores stored in the database (one per molecule conformer). More... | |
| virtual std::size_t | getNumPharmacophores (std::size_t mol_idx) const =0 |
| Returns the number of pharmacophores stored for the molecule at index mol_idx. More... | |
| virtual void | getMolecule (std::size_t mol_idx, Chem::Molecule &mol, bool overwrite=true) const =0 |
| Reads the molecule at index mol_idx into mol. More... | |
| virtual void | getPharmacophore (std::size_t pharm_idx, Pharmacophore &pharm, bool overwrite=true) const =0 |
| Reads the pharmacophore at index pharm_idx into pharm. More... | |
| virtual void | getPharmacophore (std::size_t mol_idx, std::size_t mol_conf_idx, Pharmacophore &pharm, bool overwrite=true) const =0 |
| Reads the pharmacophore corresponding to conformer mol_conf_idx of molecule mol_idx into pharm. More... | |
| virtual std::size_t | getMoleculeIndex (std::size_t pharm_idx) const =0 |
| Returns the molecule index of the pharmacophore at index pharm_idx. More... | |
| virtual std::size_t | getConformationIndex (std::size_t pharm_idx) const =0 |
| Returns the conformer index within the parent molecule of the pharmacophore at index pharm_idx. More... | |
| virtual const FeatureTypeHistogram & | getFeatureCounts (std::size_t pharm_idx) const =0 |
| Returns the cached per Pharm::FeatureType frequency histogram of the pharmacophore at index pharm_idx. More... | |
| virtual const FeatureTypeHistogram & | getFeatureCounts (std::size_t mol_idx, std::size_t mol_conf_idx) const =0 |
| Returns the cached per Pharm::FeatureType frequency histogram of conformer mol_conf_idx of molecule mol_idx. More... | |
Protected Member Functions | |
| ScreeningDBAccessor & | operator= (const ScreeningDBAccessor &) |
Abstract base class for accessors that read the data stored in pharmacophore screening databases.
| typedef std::shared_ptr<ScreeningDBAccessor> CDPL::Pharm::ScreeningDBAccessor::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated ScreeningDBAccessor instances.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Opens the screening database identified by name.
| name | The database name (path, URI, etc., interpreted by the concrete subclass). |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Closes the currently open database.
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the name of the currently open database.
const reference to the database name. Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the total number of molecules stored in the database.
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the total number of pharmacophores stored in the database (one per molecule conformer).
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the number of pharmacophores stored for the molecule at index mol_idx.
| mol_idx | The zero-based molecule index. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Reads the molecule at index mol_idx into mol.
| mol_idx | The zero-based molecule index. |
| mol | The output molecule. |
| overwrite | If true, mol is cleared before reading; if false, the atoms/bonds are appended. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Reads the pharmacophore at index pharm_idx into pharm.
| pharm_idx | The zero-based pharmacophore index (across all molecules). |
| pharm | The output pharmacophore. |
| overwrite | If true, pharm is cleared before reading; if false, the features are appended. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Reads the pharmacophore corresponding to conformer mol_conf_idx of molecule mol_idx into pharm.
| mol_idx | The zero-based molecule index. |
| mol_conf_idx | The zero-based conformer index within the molecule. |
| pharm | The output pharmacophore. |
| overwrite | If true, pharm is cleared before reading; if false, the features are appended. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the molecule index of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the conformer index within the parent molecule of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the cached per Pharm::FeatureType frequency histogram of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
const reference to the feature-type histogram. Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
pure virtual |
Returns the cached per Pharm::FeatureType frequency histogram of conformer mol_conf_idx of molecule mol_idx.
| mol_idx | The zero-based molecule index. |
| mol_conf_idx | The zero-based conformer index within the molecule. |
const reference to the feature-type histogram. Implemented in CDPL::Pharm::PSDScreeningDBAccessor.
|
inlineprotected |