![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Pharm::ScreeningDBAccessor implementation that reads pharmacophore screening databases stored in the built-in optimized PSD format. More...
#include <PSDScreeningDBAccessor.hpp>
Inheritance diagram for CDPL::Pharm::PSDScreeningDBAccessor:Public Types | |
| typedef std::shared_ptr< PSDScreeningDBAccessor > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated PSDScreeningDBAccessor instances. More... | |
Public Types inherited from CDPL::Pharm::ScreeningDBAccessor | |
| typedef std::shared_ptr< ScreeningDBAccessor > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated ScreeningDBAccessor instances. More... | |
Public Member Functions | |
| PSDScreeningDBAccessor () | |
Constructs a PSDScreeningDBAccessor instance without an associated database. More... | |
| PSDScreeningDBAccessor (const std::string &name) | |
Constructs a PSDScreeningDBAccessor instance that will read data from the database-file specified by name. More... | |
| PSDScreeningDBAccessor (const PSDScreeningDBAccessor &)=delete | |
| ~PSDScreeningDBAccessor () | |
| Destructor. More... | |
| PSDScreeningDBAccessor & | operator= (const PSDScreeningDBAccessor &)=delete |
| void | open (const std::string &name) |
| Opens the database-file specified by name. More... | |
| void | close () |
| Closes the currently associated database-file (if any). More... | |
| const std::string & | getDatabaseName () const |
| Returns the name of the currently associated database-file. More... | |
| std::size_t | getNumMolecules () const |
| Returns the total number of molecules stored in the database. More... | |
| std::size_t | getNumPharmacophores () const |
| Returns the total number of pharmacophores stored in the database. More... | |
| std::size_t | getNumPharmacophores (std::size_t mol_idx) const |
| Returns the number of pharmacophores (conformers) stored for the molecule at index mol_idx. More... | |
| void | getMolecule (std::size_t mol_idx, Chem::Molecule &mol, bool overwrite=true) const |
| Retrieves the molecule at index mol_idx and stores it in mol. More... | |
| void | getPharmacophore (std::size_t pharm_idx, Pharmacophore &pharm, bool overwrite=true) const |
| Retrieves the pharmacophore at index pharm_idx and stores it in pharm. More... | |
| void | getPharmacophore (std::size_t mol_idx, std::size_t mol_conf_idx, Pharmacophore &pharm, bool overwrite=true) const |
| Retrieves the pharmacophore for the given (molecule, conformer) pair and stores it in pharm. More... | |
| std::size_t | getMoleculeIndex (std::size_t pharm_idx) const |
| Returns the molecule index of the pharmacophore at index pharm_idx. More... | |
| std::size_t | getConformationIndex (std::size_t pharm_idx) const |
| Returns the conformer index (within its owning molecule) of the pharmacophore at index pharm_idx. More... | |
| const FeatureTypeHistogram & | getFeatureCounts (std::size_t pharm_idx) const |
| Returns the per-feature-type counts of the pharmacophore at index pharm_idx. More... | |
| const FeatureTypeHistogram & | getFeatureCounts (std::size_t mol_idx, std::size_t mol_conf_idx) const |
| Returns the per-feature-type counts of the pharmacophore for the given (molecule, conformer) pair. More... | |
Public Member Functions inherited from CDPL::Pharm::ScreeningDBAccessor | |
| virtual | ~ScreeningDBAccessor () |
| Virtual destructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CDPL::Pharm::ScreeningDBAccessor | |
| ScreeningDBAccessor & | operator= (const ScreeningDBAccessor &) |
Pharm::ScreeningDBAccessor implementation that reads pharmacophore screening databases stored in the built-in optimized PSD format.
| typedef std::shared_ptr<PSDScreeningDBAccessor> CDPL::Pharm::PSDScreeningDBAccessor::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated PSDScreeningDBAccessor instances.
| CDPL::Pharm::PSDScreeningDBAccessor::PSDScreeningDBAccessor | ( | ) |
Constructs a PSDScreeningDBAccessor instance without an associated database.
| CDPL::Pharm::PSDScreeningDBAccessor::PSDScreeningDBAccessor | ( | const std::string & | name | ) |
Constructs a PSDScreeningDBAccessor instance that will read data from the database-file specified by name.
| name | The name of the database-file. |
|
delete |
| CDPL::Pharm::PSDScreeningDBAccessor::~PSDScreeningDBAccessor | ( | ) |
Destructor.
|
delete |
|
virtual |
Opens the database-file specified by name.
| name | The name of the database-file. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Closes the currently associated database-file (if any).
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the name of the currently associated database-file.
const reference to the database-file name (or an empty string if no database is open). Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the total number of molecules stored in the database.
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the total number of pharmacophores stored in the database.
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the number of pharmacophores (conformers) stored for the molecule at index mol_idx.
| mol_idx | The zero-based molecule index. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Retrieves the molecule at index mol_idx and stores it in mol.
| mol_idx | The zero-based molecule index. |
| mol | The output molecule. |
| overwrite | If true, the output molecule is cleared before the database molecule is copied into it. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Retrieves the pharmacophore at index pharm_idx and stores it in pharm.
| pharm_idx | The zero-based pharmacophore index. |
| pharm | The output pharmacophore. |
| overwrite | If true, the output pharmacophore is cleared before the database pharmacophore is copied into it. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Retrieves the pharmacophore for the given (molecule, conformer) pair and stores it in 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, the output pharmacophore is cleared before the database pharmacophore is copied into it. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the molecule index of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the conformer index (within its owning molecule) of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the per-feature-type counts of the pharmacophore at index pharm_idx.
| pharm_idx | The zero-based pharmacophore index. |
const reference to the feature-type histogram. Implements CDPL::Pharm::ScreeningDBAccessor.
|
virtual |
Returns the per-feature-type counts of the pharmacophore for the given (molecule, conformer) pair.
| 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. Implements CDPL::Pharm::ScreeningDBAccessor.