29 #ifndef CDPL_PHARM_PSDSCREENINGDBCREATOR_HPP
30 #define CDPL_PHARM_PSDSCREENINGDBCREATOR_HPP
44 class PSDScreeningDBCreatorImpl;
88 void open(
const std::string& name,
Mode mode = CREATE,
bool allow_dup_entries =
true);
153 typedef std::unique_ptr<PSDScreeningDBCreatorImpl> ImplementationPointer;
155 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::ScreeningDBCreator.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Pharm::ScreeningDBCreator implementation that builds optimized pharmacophore screening databases in t...
Definition: PSDScreeningDBCreator.hpp:51
~PSDScreeningDBCreator()
Destructor.
const std::string & getDatabaseName() const
Returns the name of the currently associated database-file.
bool allowDuplicateEntries() const
Tells whether duplicate database entries are currently allowed.
std::size_t getNumDeleted() const
Returns the number of pre-existing database entries that were deleted (under Mode::UPDATE/CREATE).
PSDScreeningDBCreator()
Constructs a PSDScreeningDBCreator instance without an associated database.
void close()
Closes the currently associated database-file (if any).
bool merge(const ScreeningDBAccessor &db_acc, const ProgressCallbackFunction &func)
Merges all molecule/pharmacophore records of db_acc into the currently open database.
std::size_t getNumProcessed() const
Returns the total number of input molecules processed since the database was opened.
void open(const std::string &name, Mode mode=CREATE, bool allow_dup_entries=true)
Opens the database-file specified by name in the given insert mode.
bool process(const Chem::MolecularGraph &molgraph)
Processes molgraph and inserts the resulting molecule (with derived conformer pharmacophores) into th...
PSDScreeningDBCreator & operator=(const PSDScreeningDBCreator &)=delete
std::size_t getNumRejected() const
Returns the number of processed molecules that were rejected (e.g. as duplicates).
Mode getMode() const
Returns the currently configured insert mode.
std::shared_ptr< PSDScreeningDBCreator > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated PSDScreeningDBCreator instances.
Definition: PSDScreeningDBCreator.hpp:55
PSDScreeningDBCreator(const std::string &name, Mode mode=CREATE, bool allow_dup_entries=true)
Constructs a PSDScreeningDBCreator instance that will write data to the database-file specified by na...
std::size_t getNumInserted() const
Returns the number of new database entries that were inserted.
PSDScreeningDBCreator(const PSDScreeningDBCreator &)=delete
Abstract base class for accessors that read the data stored in pharmacophore screening databases.
Definition: ScreeningDBAccessor.hpp:58
Abstract base class for creators that build optimized pharmacophore screening databases.
Definition: ScreeningDBCreator.hpp:58
Mode
Specifies how an existing database file is treated by open().
Definition: ScreeningDBCreator.hpp:71
std::function< bool(double)> ProgressCallbackFunction
Type of the progress-reporting callback (argument: fraction in [0, 1], return: true to continue,...
Definition: ScreeningDBCreator.hpp:65
The namespace of the Chemical Data Processing Library.