29 #ifndef CDPL_PHARM_PSDSCREENINGDBACCESSOR_HPP
30 #define CDPL_PHARM_PSDSCREENINGDBACCESSOR_HPP
44 class PSDScreeningDBAccessorImpl;
82 void open(
const std::string& name);
169 typedef std::unique_ptr<PSDScreeningDBAccessorImpl> ImplementationPointer;
171 ImplementationPointer impl;
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of class CDPL::Pharm::ScreeningDBAccessor.
Abstract base class representing a mutable molecular graph that owns its atoms and bonds.
Definition: Molecule.hpp:53
Data type for the storage of feature type histograms of pharmacophores.
Definition: FeatureTypeHistogram.hpp:50
Pharm::ScreeningDBAccessor implementation that reads pharmacophore screening databases stored in the ...
Definition: PSDScreeningDBAccessor.hpp:51
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.
PSDScreeningDBAccessor()
Constructs a PSDScreeningDBAccessor instance without an associated database.
void open(const std::string &name)
Opens the database-file specified by name.
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.
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.
std::shared_ptr< PSDScreeningDBAccessor > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PSDScreeningDBAccessor instances.
Definition: PSDScreeningDBAccessor.hpp:55
std::size_t getNumPharmacophores(std::size_t mol_idx) const
Returns the number of pharmacophores (conformers) stored for the molecule at index mol_idx.
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.
PSDScreeningDBAccessor(const std::string &name)
Constructs a PSDScreeningDBAccessor instance that will read data from the database-file specified by ...
std::size_t getNumPharmacophores() const
Returns the total number of pharmacophores stored in the database.
void close()
Closes the currently associated database-file (if any).
std::size_t getNumMolecules() const
Returns the total number of molecules stored in the database.
const FeatureTypeHistogram & getFeatureCounts(std::size_t pharm_idx) const
Returns the per-feature-type counts of the pharmacophore at index pharm_idx.
~PSDScreeningDBAccessor()
Destructor.
const std::string & getDatabaseName() const
Returns the name of the currently associated database-file.
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.
PSDScreeningDBAccessor(const PSDScreeningDBAccessor &)=delete
std::size_t getMoleculeIndex(std::size_t pharm_idx) const
Returns the molecule index of the pharmacophore at index pharm_idx.
PSDScreeningDBAccessor & operator=(const PSDScreeningDBAccessor &)=delete
Abstract base class for mutable containers of Pharm::Feature instances representing a pharmacophore m...
Definition: Pharmacophore.hpp:53
Abstract base class for accessors that read the data stored in pharmacophore screening databases.
Definition: ScreeningDBAccessor.hpp:58
The namespace of the Chemical Data Processing Library.