Chemical Data Processing Library C++ API - Version 1.4.0
MMFF94OutOfPlaneBendingInteraction.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94OutOfPlaneBendingInteraction.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_MMFF94OUTOFPLANEBENDINGINTERACTION_HPP
30 #define CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTION_HPP
31 
32 #include <cstddef>
33 
34 
35 namespace CDPL
36 {
37 
38  namespace ForceField
39  {
40 
46  {
47 
48  public:
57  MMFF94OutOfPlaneBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx,
58  std::size_t oop_atom_idx, double force_const):
59  termAtom1Idx(term_atom1_idx),
60  ctrAtomIdx(ctr_atom_idx), termAtom2Idx(term_atom2_idx),
61  oopAtomIdx(oop_atom_idx), forceConst(force_const) {}
62 
67  std::size_t getTerminalAtom1Index() const
68  {
69  return termAtom1Idx;
70  }
71 
76  std::size_t getCenterAtomIndex() const
77  {
78  return ctrAtomIdx;
79  }
80 
85  std::size_t getTerminalAtom2Index() const
86  {
87  return termAtom2Idx;
88  }
89 
94  std::size_t getOutOfPlaneAtomIndex() const
95  {
96  return oopAtomIdx;
97  }
98 
103  std::size_t getAtom1Index() const
104  {
105  return termAtom1Idx;
106  }
107 
112  std::size_t getAtom2Index() const
113  {
114  return ctrAtomIdx;
115  }
116 
121  std::size_t getAtom3Index() const
122  {
123  return termAtom2Idx;
124  }
125 
130  std::size_t getAtom4Index() const
131  {
132  return oopAtomIdx;
133  }
134 
139  double getForceConstant() const
140  {
141  return forceConst;
142  }
143 
144  private:
145  std::size_t termAtom1Idx;
146  std::size_t ctrAtomIdx;
147  std::size_t termAtom2Idx;
148  std::size_t oopAtomIdx;
149  double forceConst;
150  };
151  } // namespace ForceField
152 } // namespace CDPL
153 
154 #endif // CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTION_HPP
Stores parameters for a single MMFF94 out-of-plane bending interaction at a trigonal center.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:46
std::size_t getTerminalAtom2Index() const
Returns the zero-based index of the second in-plane terminal atom k.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:85
std::size_t getCenterAtomIndex() const
Returns the zero-based index of the central trigonal atom j.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:76
std::size_t getTerminalAtom1Index() const
Returns the zero-based index of the first in-plane terminal atom i.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:67
double getForceConstant() const
Returns the out-of-plane force constant.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:139
std::size_t getOutOfPlaneAtomIndex() const
Returns the zero-based index of the out-of-plane atom l.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:94
std::size_t getAtom3Index() const
Returns the zero-based index of the second in-plane terminal atom (alias for getTerminalAtom2Index())...
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:121
MMFF94OutOfPlaneBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx, std::size_t oop_atom_idx, double force_const)
Constructs the out-of-plane bending interaction parameter set.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:57
std::size_t getAtom4Index() const
Returns the zero-based index of the out-of-plane atom (alias for getOutOfPlaneAtomIndex()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:130
std::size_t getAtom2Index() const
Returns the zero-based index of the central atom (alias for getCenterAtomIndex()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:112
std::size_t getAtom1Index() const
Returns the zero-based index of the first in-plane terminal atom (alias for getTerminalAtom1Index()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:103
The namespace of the Chemical Data Processing Library.