29 #ifndef CDPL_PHARM_SCREENINGDBACCESSOR_HPP
30 #define CDPL_PHARM_SCREENINGDBACCESSOR_HPP
52 class FeatureTypeHistogram;
73 virtual void open(
const std::string& name) = 0;
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.
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
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
ScreeningDBAccessor & operator=(const ScreeningDBAccessor &)
Definition: ScreeningDBAccessor.hpp:160
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.
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...
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.
virtual void close()=0
Closes the currently open database.
virtual std::size_t getMoleculeIndex(std::size_t pharm_idx) const =0
Returns the molecule index of the pharmacophore at index pharm_idx.
std::shared_ptr< ScreeningDBAccessor > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated ScreeningDBAccessor instances.
Definition: ScreeningDBAccessor.hpp:62
virtual std::size_t getNumPharmacophores() const =0
Returns the total number of pharmacophores stored in the database (one per molecule conformer).
virtual std::size_t getNumMolecules() const =0
Returns the total number of molecules stored in the database.
virtual void getPharmacophore(std::size_t pharm_idx, Pharmacophore &pharm, bool overwrite=true) const =0
Reads the pharmacophore at index pharm_idx into pharm.
virtual const std::string & getDatabaseName() const =0
Returns the name of the currently open database.
virtual ~ScreeningDBAccessor()
Virtual destructor.
Definition: ScreeningDBAccessor.hpp:67
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 m...
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.
virtual void open(const std::string &name)=0
Opens the screening database identified by name.
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.
The namespace of the Chemical Data Processing Library.