Chemical Data Processing Library C++ API - Version 1.4.0
MMFF94TorsionInteraction.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94TorsionInteraction.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_MMFF94TORSIONINTERACTION_HPP
30 #define CDPL_FORCEFIELD_MMFF94TORSIONINTERACTION_HPP
31 
32 #include <cstddef>
33 
34 
35 namespace CDPL
36 {
37 
38  namespace ForceField
39  {
40 
46  {
47 
48  public:
60  MMFF94TorsionInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom1_idx, std::size_t ctr_atom2_idx,
61  std::size_t term_atom2_idx, unsigned int tor_type_idx, double tor_param1,
62  double tor_param2, double tor_param3):
63  termAtom1Idx(term_atom1_idx),
64  ctrAtom1Idx(ctr_atom1_idx), ctrAtom2Idx(ctr_atom2_idx),
65  termAtom2Idx(term_atom2_idx), torTypeIdx(tor_type_idx), torParam1(tor_param1), torParam2(tor_param2),
66  torParam3(tor_param3) {}
67 
72  std::size_t getTerminalAtom1Index() const
73  {
74  return termAtom1Idx;
75  }
76 
81  std::size_t getCenterAtom1Index() const
82  {
83  return ctrAtom1Idx;
84  }
85 
90  std::size_t getCenterAtom2Index() const
91  {
92  return ctrAtom2Idx;
93  }
94 
99  std::size_t getTerminalAtom2Index() const
100  {
101  return termAtom2Idx;
102  }
103 
108  std::size_t getAtom1Index() const
109  {
110  return termAtom1Idx;
111  }
112 
117  std::size_t getAtom2Index() const
118  {
119  return ctrAtom1Idx;
120  }
121 
126  std::size_t getAtom3Index() const
127  {
128  return ctrAtom2Idx;
129  }
130 
135  std::size_t getAtom4Index() const
136  {
137  return termAtom2Idx;
138  }
139 
144  unsigned int getTorsionTypeIndex() const
145  {
146  return torTypeIdx;
147  }
148 
153  double getTorsionParameter1() const
154  {
155  return torParam1;
156  }
157 
162  double getTorsionParameter2() const
163  {
164  return torParam2;
165  }
166 
171  double getTorsionParameter3() const
172  {
173  return torParam3;
174  }
175 
176  private:
177  std::size_t termAtom1Idx;
178  std::size_t ctrAtom1Idx;
179  std::size_t ctrAtom2Idx;
180  std::size_t termAtom2Idx;
181  unsigned int torTypeIdx;
182  double torParam1;
183  double torParam2;
184  double torParam3;
185  };
186  } // namespace ForceField
187 } // namespace CDPL
188 
189 #endif // CDPL_FORCEFIELD_MMFF94TORSIONINTERACTION_HPP
Stores parameters for a single MMFF94 torsion interaction over an atom quadruplet i-j-k-l.
Definition: MMFF94TorsionInteraction.hpp:46
double getTorsionParameter3() const
Returns the third torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:171
double getTorsionParameter1() const
Returns the first torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:153
std::size_t getAtom1Index() const
Returns the zero-based index of the first terminal atom (alias for getTerminalAtom1Index()).
Definition: MMFF94TorsionInteraction.hpp:108
std::size_t getAtom4Index() const
Returns the zero-based index of the second terminal atom (alias for getTerminalAtom2Index()).
Definition: MMFF94TorsionInteraction.hpp:135
unsigned int getTorsionTypeIndex() const
Returns the MMFF94 torsion type index.
Definition: MMFF94TorsionInteraction.hpp:144
double getTorsionParameter2() const
Returns the second torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:162
std::size_t getCenterAtom1Index() const
Returns the zero-based index of the first central atom j.
Definition: MMFF94TorsionInteraction.hpp:81
std::size_t getTerminalAtom2Index() const
Returns the zero-based index of the second terminal atom l.
Definition: MMFF94TorsionInteraction.hpp:99
std::size_t getAtom2Index() const
Returns the zero-based index of the first central atom (alias for getCenterAtom1Index()).
Definition: MMFF94TorsionInteraction.hpp:117
std::size_t getCenterAtom2Index() const
Returns the zero-based index of the second central atom k.
Definition: MMFF94TorsionInteraction.hpp:90
std::size_t getAtom3Index() const
Returns the zero-based index of the second central atom (alias for getCenterAtom2Index()).
Definition: MMFF94TorsionInteraction.hpp:126
std::size_t getTerminalAtom1Index() const
Returns the zero-based index of the first terminal atom i.
Definition: MMFF94TorsionInteraction.hpp:72
MMFF94TorsionInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom1_idx, std::size_t ctr_atom2_idx, std::size_t term_atom2_idx, unsigned int tor_type_idx, double tor_param1, double tor_param2, double tor_param3)
Constructs the torsion interaction parameter set.
Definition: MMFF94TorsionInteraction.hpp:60
The namespace of the Chemical Data Processing Library.