Chemical Data Processing Library C++ API - Version 1.4.0
MMFF94OutOfPlaneBendingInteractionParameterizer.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94OutOfPlaneBendingInteractionParameterizer.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_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_HPP
30 #define CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_HPP
31 
32 #include <vector>
33 #include <memory>
34 
42 
43 
44 namespace CDPL
45 {
46 
47  namespace Chem
48  {
49 
50  class MolecularGraph;
51  class Atom;
52  } // namespace Chem
53 
54  namespace ForceField
55  {
56 
67  {
68 
69  public:
71  typedef std::shared_ptr<MMFF94OutOfPlaneBendingInteractionParameterizer> SharedPointer;
72 
77 
87  bool strict);
88 
94 
100 
106 
112 
118 
127  void parameterize(const Chem::MolecularGraph& molgraph, MMFF94OutOfPlaneBendingInteractionList& ia_list, bool strict);
128 
129  private:
130  typedef std::vector<const Chem::Atom*> AtomList;
131 
132  double getForceConstant(const Chem::MolecularGraph& molgraph, unsigned int ctr_atom_type,
133  std::size_t ctr_atom_idx, const AtomList& nbr_atoms, bool strict) const;
134 
135  double getForceConstant(const Chem::MolecularGraph& molgraph, unsigned int ctr_atom_type,
136  std::size_t ctr_atom_idx, unsigned int nbr_atom_types[3], const AtomList& nbr_atoms) const;
137 
138  InteractionFilterFunction4 filterFunc;
139  MMFF94NumericAtomTypeFunction atomTypeFunc;
143  AtomList nbrAtoms;
144  };
145  } // namespace ForceField
146 } // namespace CDPL
147 
148 #endif // CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_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::MMFF94OutOfPlaneBendingInteractionList.
Definition of class CDPL::ForceField::MMFF94OutOfPlaneBendingParameterTable.
Definition of class CDPL::ForceField::MMFF94PrimaryToParameterAtomTypeMap.
Type declaration of generic wrapper classes for storing user-defined functions for the retrieval of M...
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
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 out-of-plane bending interactions of a molecular graph.
Definition: MMFF94OutOfPlaneBendingInteractionParameterizer.hpp:67
void setAtomTypeFunction(const MMFF94NumericAtomTypeFunction &func)
Sets the function used to look up the MMFF94 numeric atom type of an atom.
void setFilterFunction(const InteractionFilterFunction4 &func)
Sets the filter function used to skip atom quadruplets during parameterization.
void setParameterAtomTypeMap(const MMFF94PrimaryToParameterAtomTypeMap::SharedPointer &map)
Sets the map used to translate primary atom types into their corresponding parameter atom types.
std::shared_ptr< MMFF94OutOfPlaneBendingInteractionParameterizer > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94OutOfPlaneBendingInteractio...
Definition: MMFF94OutOfPlaneBendingInteractionParameterizer.hpp:71
MMFF94OutOfPlaneBendingInteractionParameterizer()
Constructs an MMFF94OutOfPlaneBendingInteractionParameterizer instance using the default MMFF94 param...
void parameterize(const Chem::MolecularGraph &molgraph, MMFF94OutOfPlaneBendingInteractionList &ia_list, bool strict)
Perceives the MMFF94 out-of-plane bending interactions for molgraph and outputs the corresponding par...
void setAtomTypePropertyTable(const MMFF94AtomTypePropertyTable::SharedPointer &table)
Sets the table providing MMFF94 numeric atom type property data (used to identify trigonal centers).
void setOutOfPlaneBendingParameterTable(const MMFF94OutOfPlaneBendingParameterTable::SharedPointer &table)
Sets the table providing the out-of-plane bending force constants.
MMFF94OutOfPlaneBendingInteractionParameterizer(const Chem::MolecularGraph &molgraph, MMFF94OutOfPlaneBendingInteractionList &ia_list, bool strict)
Constructs the parameterizer and processes the molecular graph molgraph.
std::shared_ptr< MMFF94OutOfPlaneBendingParameterTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94OutOfPlaneBendingParameterT...
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:67
std::shared_ptr< MMFF94PrimaryToParameterAtomTypeMap > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94PrimaryToParameterAtomTypeM...
Definition: MMFF94PrimaryToParameterAtomTypeMap.hpp:64
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< bool(const Chem::Atom &, const Chem::Atom &, const Chem::Atom &, const Chem::Atom &)> InteractionFilterFunction4
Generic wrapper for storing user-defined four-atom interaction filtering functions (see [FUNWRP]).
Definition: InteractionFilterFunctions.hpp:72
The namespace of the Chemical Data Processing Library.