Chemical Data Processing Library C++ API - Version 1.4.0
MMFF94BondStretchingInteractionParameterizer.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94BondStretchingInteractionParameterizer.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_FORCEFIELD_MMFF94BONDSTRETCHINGINTERACTIONPARAMETERIZER_HPP
30 #define CDPL_FORCEFIELD_MMFF94BONDSTRETCHINGINTERACTIONPARAMETERIZER_HPP
31 
32 #include <memory>
33 
41 
42 
43 namespace CDPL
44 {
45 
46  namespace Chem
47  {
48 
49  class MolecularGraph;
50  class Bond;
51  } // namespace Chem
52 
53  namespace ForceField
54  {
55 
64  {
65 
66  public:
68  typedef std::shared_ptr<MMFF94BondStretchingInteractionParameterizer> SharedPointer;
69 
74 
84  bool strict);
85 
91 
97 
103 
109 
115 
121 
127 
136  void parameterize(const Chem::MolecularGraph& molgraph, MMFF94BondStretchingInteractionList& ia_list, bool strict);
137 
148  void getParameters(const Chem::MolecularGraph& molgraph, const Chem::Bond& bond,
149  unsigned int& bond_type_idx, double& force_const, double& ref_length, bool strict) const;
150 
151  private:
153 
154  void getParameters(const Chem::MolecularGraph& molgraph, const Chem::Bond& bond,
155  unsigned int bond_type_idx, unsigned int atom1_type, unsigned int atom2_type,
156  double& force_const, double& ref_length) const;
157 
158  double calcReferenceBondLength(const Chem::MolecularGraph& molgraph, const Chem::Bond& bond,
159  const AtomTypePropEntry& type1_prop_entry,
160  const AtomTypePropEntry& type2_prop_entry) const;
161 
162  InteractionFilterFunction2 filterFunc;
163  MMFF94NumericAtomTypeFunction atomTypeFunc;
164  MMFF94BondTypeIndexFunction bondTypeIdxFunc;
165  MMFF94RingSetFunction aromRingSetFunc;
169  };
170  } // namespace ForceField
171 } // namespace CDPL
172 
173 #endif // CDPL_FORCEFIELD_MMFF94BONDSTRETCHINGINTERACTIONPARAMETERIZER_HPP
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Type declaration of generic wrapper class types for storing user-defined interaction filtering predic...
Definition of class CDPL::ForceField::MMFF94AtomTypePropertyTable.
Declaration of type CDPL::ForceField::MMFF94BondStretchingInteractionList.
Definition of class CDPL::ForceField::MMFF94BondStretchingParameterTable.
Definition of class CDPL::ForceField::MMFF94BondStretchingRuleParameterTable.
Type declaration of generic wrapper classes for storing user-defined functions for the retrieval of M...
Abstract base class representing a chemical bond between two Chem::Atom instances.
Definition: Bond.hpp:54
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
A single atom-type property record.
Definition: MMFF94AtomTypePropertyTable.hpp:74
std::shared_ptr< MMFF94AtomTypePropertyTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94AtomTypePropertyTable insta...
Definition: MMFF94AtomTypePropertyTable.hpp:68
Detects and parameterizes the MMFF94 bond-stretching interactions of a molecular graph.
Definition: MMFF94BondStretchingInteractionParameterizer.hpp:64
void setBondTypeIndexFunction(const MMFF94BondTypeIndexFunction &func)
Sets the function used to look up the MMFF94 bond type index of a bond.
void parameterize(const Chem::MolecularGraph &molgraph, MMFF94BondStretchingInteractionList &ia_list, bool strict)
Perceives the MMFF94 bond-stretching interactions for molgraph and outputs the corresponding paramete...
MMFF94BondStretchingInteractionParameterizer()
Constructs an MMFF94BondStretchingInteractionParameterizer instance using the default MMFF94 paramete...
void setBondStretchingRuleParameterTable(const MMFF94BondStretchingRuleParameterTable::SharedPointer &table)
Sets the fallback table providing rule-based bond-stretching parameters.
void setAtomTypePropertyTable(const MMFF94AtomTypePropertyTable::SharedPointer &table)
Sets the table providing MMFF94 numeric atom type property data (used by the empirical fallback).
MMFF94BondStretchingInteractionParameterizer(const Chem::MolecularGraph &molgraph, MMFF94BondStretchingInteractionList &ia_list, bool strict)
Constructs the parameterizer and processes the molecular graph molgraph.
std::shared_ptr< MMFF94BondStretchingInteractionParameterizer > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94BondStretchingInteractionPa...
Definition: MMFF94BondStretchingInteractionParameterizer.hpp:68
void getParameters(const Chem::MolecularGraph &molgraph, const Chem::Bond &bond, unsigned int &bond_type_idx, double &force_const, double &ref_length, bool strict) const
Looks up the MMFF94 bond-stretching parameters for a single bond.
void setAromaticRingSetFunction(const MMFF94RingSetFunction &func)
Sets the function used to obtain the set of MMFF94 aromatic rings of the input molecular graph.
void setAtomTypeFunction(const MMFF94NumericAtomTypeFunction &func)
Sets the function used to look up the MMFF94 numeric atom type of an atom.
void setFilterFunction(const InteractionFilterFunction2 &func)
Sets the filter function used to skip bonds during parameterization.
void setBondStretchingParameterTable(const MMFF94BondStretchingParameterTable::SharedPointer &table)
Sets the primary table providing bond type-specific bond-stretching parameters.
std::shared_ptr< MMFF94BondStretchingParameterTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94BondStretchingParameterTabl...
Definition: MMFF94BondStretchingParameterTable.hpp:64
std::shared_ptr< MMFF94BondStretchingRuleParameterTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94BondStretchingRuleParameter...
Definition: MMFF94BondStretchingRuleParameterTable.hpp:65
std::function< unsigned int(const Chem::Atom &)> MMFF94NumericAtomTypeFunction
Generic wrapper class used to store a user-defined numeric MMFF94 atom type function.
Definition: MMFF94PropertyFunctions.hpp:56
std::function< const Chem::FragmentList::SharedPointer &(const Chem::MolecularGraph &)> MMFF94RingSetFunction
Generic wrapper class used to store a user-defined MMFF94 ring set function.
Definition: MMFF94PropertyFunctions.hpp:76
std::function< unsigned int(const Chem::Bond &)> MMFF94BondTypeIndexFunction
Generic wrapper class used to store a user-defined MMFF94 bond type index function.
Definition: MMFF94PropertyFunctions.hpp:71
std::function< bool(const Chem::Atom &, const Chem::Atom &)> InteractionFilterFunction2
Generic wrapper for storing user-defined two-atom interaction filtering functions (see [FUNWRP]).
Definition: InteractionFilterFunctions.hpp:54
The namespace of the Chemical Data Processing Library.