29 #ifndef CDPL_CONFGEN_FRAGMENTLIBRARYGENERATOR_HPP
30 #define CDPL_CONFGEN_FRAGMENTLIBRARYGENERATOR_HPP
158 void removeNewLibraryEntry()
const;
165 std::ostringstream smilesStream;
167 std::size_t numGenConfs;
Definition of class CDPL::ConfGen::CanonicalFragment.
Definition of the preprocessor macro CDPL_CONFGEN_API.
#define CDPL_CONFGEN_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of class CDPL::ConfGen::FragmentLibrary.
Definition of class CDPL::Chem::SMILESMolecularGraphWriter.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Writer for molecular graph data in the Daylight SMILES [SMILES] format.
Definition: SMILESMolecularGraphWriter.hpp:130
Data structure representing a canonicalized molecular fragment.
Definition: CanonicalFragment.hpp:61
std::shared_ptr< FragmentLibraryEntry > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated FragmentLibraryEntry instances.
Definition: FragmentLibraryEntry.hpp:62
Driver for populating a ConfGen::FragmentLibrary with conformers of canonicalized molecular fragments...
Definition: FragmentLibraryGenerator.hpp:57
unsigned int process(const Chem::MolecularGraph &frag, const Chem::MolecularGraph &parent)
Adds a library entry for the fragment frag of the parent molecular graph parent.
FragmentLibraryGenerator()
Constructs the FragmentLibraryGenerator instance without an associated fragment library.
const FragmentLibrary::SharedPointer & getFragmentLibrary() const
Returns the currently associated fragment library.
const CallbackFunction & getTimeoutCallback() const
Returns the currently configured timeout-check callback.
const LogMessageCallbackFunction & getLogMessageCallback() const
Returns the currently configured log-message callback.
FragmentLibraryGenerator(const FragmentLibraryGenerator &)=delete
std::uint64_t getLibraryEntryHashCode() const
Returns the hash code of the library entry created during the last process() call.
const FragmentConformerGeneratorSettings & getSettings() const
Returns a const reference to the fragment conformer generation settings.
void setFragmentLibrary(const FragmentLibrary::SharedPointer &lib)
Sets the fragment library to populate.
const CallbackFunction & getAbortCallback() const
Returns the currently configured abort-check callback.
FragmentConformerGeneratorSettings & getSettings()
Returns a reference to the fragment conformer generation settings.
FragmentLibraryGenerator & operator=(const FragmentLibraryGenerator &)=delete
std::size_t getNumGeneratedConformers() const
Returns the number of conformers generated during the last process() call.
FragmentLibraryGenerator(const FragmentLibrary::SharedPointer &lib)
Constructs the FragmentLibraryGenerator instance and associates it with lib.
void setAbortCallback(const CallbackFunction &func)
Sets the callback invoked periodically to allow conformer generation to be aborted.
void setLogMessageCallback(const LogMessageCallbackFunction &func)
Sets the callback that receives log messages produced during fragment processing.
void setTimeoutCallback(const CallbackFunction &func)
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
std::shared_ptr< FragmentLibrary > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated FragmentLibrary instances.
Definition: FragmentLibrary.hpp:68
std::function< void(const std::string &)> LogMessageCallbackFunction
Generic wrapper for storing user-defined log message callback functions (see [FUNWRP]).
Definition: LogMessageCallbackFunction.hpp:48
std::function< bool()> CallbackFunction
Generic wrapper for storing user-defined callback functions returning a bool status flag (see [FUNWRP...
Definition: CallbackFunction.hpp:47
The namespace of the Chemical Data Processing Library.