29 #ifndef CDPL_CONFGEN_TORSIONDRIVER_HPP
30 #define CDPL_CONFGEN_TORSIONDRIVER_HPP
35 #include <boost/iterator/indirect_iterator.hpp>
59 class TorsionDriverImpl;
72 typedef boost::indirect_iterator<ConformerDataArray::const_iterator, ConformerData>
ConformerIterator;
291 typedef std::unique_ptr<TorsionDriverImpl> ImplementationPointer;
293 ImplementationPointer impl;
Declaration of type CDPL::Util::BitSet.
Type definition of a generic wrapper class for storing user-defined callback functions.
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.
Type definition of a generic wrapper class for storing user-defined log message callback functions.
Definition of class CDPL::ConfGen::TorsionDriverSettings.
Definition of class CDPL::ConfGen::TorsionLibrary.
Concrete Chem::MolecularGraph implementation that stores references to a selectable subset of atoms a...
Definition: Fragment.hpp:57
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Bundle of configuration parameters for systematic conformer enumeration via class ConfGen::TorsionDri...
Definition: TorsionDriverSettings.hpp:47
Driver for the systematic enumeration of conformers obtained by rotating around rotatable bonds of a ...
Definition: TorsionDriver.hpp:66
const LogMessageCallbackFunction & getLogMessageCallback() const
Returns the currently configured log-message callback.
ConformerIterator end()
Returns a mutable iterator pointing one past the last conformer (range-based for support).
boost::indirect_iterator< ConformerDataArray::const_iterator, const ConformerData > ConstConformerIterator
A constant iterator over the generated conformers.
Definition: TorsionDriver.hpp:70
ConstConformerIterator begin() const
Returns a constant iterator pointing to the first conformer (range-based for support).
ConformerIterator begin()
Returns a mutable iterator pointing to the first conformer (range-based for support).
void clearTorsionLibraries()
Removes all configured torsion libraries.
const TorsionDriverSettings & getSettings() const
Returns the current driver settings.
void addTorsionLibrary(const TorsionLibrary::SharedPointer &lib)
Adds lib to the list of torsion libraries consulted during torsion driving.
~TorsionDriver()
Destructor.
void clearInputCoordinates()
Removes all stored input coordinates.
void clearInputCoordinates(std::size_t frag_idx)
Removes all input coordinates of the fragment at index frag_idx.
void addInputCoordinates(const ConformerData &conf_data, std::size_t frag_idx)
Adds the conformer data conf_data as a new starting conformation restricted to the fragment at index ...
std::size_t getNumFragments() const
Returns the number of fragments produced by the rotatable bond decomposition.
unsigned int generateConformers()
Runs the torsion-driving conformer enumeration.
const Chem::Fragment & getFragment(std::size_t idx) const
Returns the fragment at index idx.
std::size_t getNumConformers() const
Returns the number of generated conformers.
ConformerIterator getConformersEnd()
Returns a mutable iterator pointing one past the last conformer.
TorsionDriver(const TorsionDriver &)=delete
void setTimeoutCallback(const CallbackFunction &func)
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
TorsionDriver & operator=(const TorsionDriver &)=delete
const CallbackFunction & getAbortCallback() const
Returns the currently configured abort-check callback.
void addInputCoordinates(const ConformerData::SharedPointer &conf_data, std::size_t frag_idx)
Adds the conformer data shared pointer conf_data as a new starting conformation restricted to the fra...
void addInputCoordinates(const Math::Vector3DArray &coords)
Adds coords as a new starting conformation that the driver will torsion-drive.
ConformerData & getConformer(std::size_t idx)
Returns the conformer at index idx.
ConstConformerIterator getConformersBegin() const
Returns a constant iterator pointing to the first conformer.
ConformerIterator getConformersBegin()
Returns a mutable iterator pointing to the first conformer.
void setLogMessageCallback(const LogMessageCallbackFunction &func)
Sets the callback receiving log messages emitted by the driver.
void setAbortCallback(const CallbackFunction &func)
Sets the callback invoked periodically to allow the generation to be aborted by the user.
ConstConformerIterator getConformersEnd() const
Returns a constant iterator pointing one past the last conformer.
TorsionDriver()
Constructs the TorsionDriver instance.
void addInputCoordinates(const Math::Vector3DArray &coords, std::size_t frag_idx)
Adds coords as a new starting conformation restricted to the fragment at index frag_idx.
TorsionDriverSettings & getSettings()
Returns the current driver settings (mutable).
const ConformerData & getConformer(std::size_t idx) const
Returns the conformer at index idx.
unsigned int setup(const Chem::MolecularGraph &molgraph)
Sets up the driver for molgraph with the default rotatable bond perception.
const CallbackFunction & getTimeoutCallback() const
Returns the currently configured timeout-check callback.
boost::indirect_iterator< ConformerDataArray::const_iterator, ConformerData > ConformerIterator
A mutable iterator over the generated conformers.
Definition: TorsionDriver.hpp:72
unsigned int setup(const Chem::MolecularGraph &molgraph, const Util::BitSet &bond_mask)
Sets up the driver for molgraph using only the bonds whose corresponding bit is set in bond_mask as r...
ConstConformerIterator end() const
Returns a constant iterator pointing one past the last conformer (range-based for support).
std::shared_ptr< TorsionLibrary > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated TorsionLibrary instances.
Definition: TorsionLibrary.hpp:56
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
VectorArray< Vector3D > Vector3DArray
Array storing vectors of type Math::Vector3D.
Definition: VectorArray.hpp:85
boost::dynamic_bitset BitSet
Dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.