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 
45  {
46 
47  public:
59  MMFF94TorsionInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom1_idx, std::size_t ctr_atom2_idx,
60  std::size_t term_atom2_idx, unsigned int tor_type_idx, double tor_param1,
61  double tor_param2, double tor_param3):
62  termAtom1Idx(term_atom1_idx),
63  ctrAtom1Idx(ctr_atom1_idx), ctrAtom2Idx(ctr_atom2_idx),
64  termAtom2Idx(term_atom2_idx), torTypeIdx(tor_type_idx), torParam1(tor_param1), torParam2(tor_param2),
65  torParam3(tor_param3) {}
66 
71  std::size_t getTerminalAtom1Index() const
72  {
73  return termAtom1Idx;
74  }
75 
80  std::size_t getCenterAtom1Index() const
81  {
82  return ctrAtom1Idx;
83  }
84 
89  std::size_t getCenterAtom2Index() const
90  {
91  return ctrAtom2Idx;
92  }
93 
98  std::size_t getTerminalAtom2Index() const
99  {
100  return termAtom2Idx;
101  }
102 
107  std::size_t getAtom1Index() const
108  {
109  return termAtom1Idx;
110  }
111 
116  std::size_t getAtom2Index() const
117  {
118  return ctrAtom1Idx;
119  }
120 
125  std::size_t getAtom3Index() const
126  {
127  return ctrAtom2Idx;
128  }
129 
134  std::size_t getAtom4Index() const
135  {
136  return termAtom2Idx;
137  }
138 
143  unsigned int getTorsionTypeIndex() const
144  {
145  return torTypeIdx;
146  }
147 
152  double getTorsionParameter1() const
153  {
154  return torParam1;
155  }
156 
161  double getTorsionParameter2() const
162  {
163  return torParam2;
164  }
165 
170  double getTorsionParameter3() const
171  {
172  return torParam3;
173  }
174 
175  private:
176  std::size_t termAtom1Idx;
177  std::size_t ctrAtom1Idx;
178  std::size_t ctrAtom2Idx;
179  std::size_t termAtom2Idx;
180  unsigned int torTypeIdx;
181  double torParam1;
182  double torParam2;
183  double torParam3;
184  };
185  } // namespace ForceField
186 } // namespace CDPL
187 
188 #endif // CDPL_FORCEFIELD_MMFF94TORSIONINTERACTION_HPP
Stores parameters for a single MMFF94 torsion interaction over an atom quadruplet i-j-k-l.
Definition: MMFF94TorsionInteraction.hpp:45
double getTorsionParameter3() const
Returns the third torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:170
double getTorsionParameter1() const
Returns the first torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:152
std::size_t getAtom1Index() const
Returns the zero-based index of the first terminal atom (alias for getTerminalAtom1Index()).
Definition: MMFF94TorsionInteraction.hpp:107
std::size_t getAtom4Index() const
Returns the zero-based index of the second terminal atom (alias for getTerminalAtom2Index()).
Definition: MMFF94TorsionInteraction.hpp:134
unsigned int getTorsionTypeIndex() const
Returns the MMFF94 torsion type index.
Definition: MMFF94TorsionInteraction.hpp:143
double getTorsionParameter2() const
Returns the second torsion parameter.
Definition: MMFF94TorsionInteraction.hpp:161
std::size_t getCenterAtom1Index() const
Returns the zero-based index of the first central atom j.
Definition: MMFF94TorsionInteraction.hpp:80
std::size_t getTerminalAtom2Index() const
Returns the zero-based index of the second terminal atom l.
Definition: MMFF94TorsionInteraction.hpp:98
std::size_t getAtom2Index() const
Returns the zero-based index of the first central atom (alias for getCenterAtom1Index()).
Definition: MMFF94TorsionInteraction.hpp:116
std::size_t getCenterAtom2Index() const
Returns the zero-based index of the second central atom k.
Definition: MMFF94TorsionInteraction.hpp:89
std::size_t getAtom3Index() const
Returns the zero-based index of the second central atom (alias for getCenterAtom2Index()).
Definition: MMFF94TorsionInteraction.hpp:125
std::size_t getTerminalAtom1Index() const
Returns the zero-based index of the first terminal atom i.
Definition: MMFF94TorsionInteraction.hpp:71
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:59
The namespace of the Chemical Data Processing Library.