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 
45  {
46 
47  public:
56  MMFF94OutOfPlaneBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx,
57  std::size_t oop_atom_idx, double force_const):
58  termAtom1Idx(term_atom1_idx),
59  ctrAtomIdx(ctr_atom_idx), termAtom2Idx(term_atom2_idx),
60  oopAtomIdx(oop_atom_idx), forceConst(force_const) {}
61 
66  std::size_t getTerminalAtom1Index() const
67  {
68  return termAtom1Idx;
69  }
70 
75  std::size_t getCenterAtomIndex() const
76  {
77  return ctrAtomIdx;
78  }
79 
84  std::size_t getTerminalAtom2Index() const
85  {
86  return termAtom2Idx;
87  }
88 
93  std::size_t getOutOfPlaneAtomIndex() const
94  {
95  return oopAtomIdx;
96  }
97 
102  std::size_t getAtom1Index() const
103  {
104  return termAtom1Idx;
105  }
106 
111  std::size_t getAtom2Index() const
112  {
113  return ctrAtomIdx;
114  }
115 
120  std::size_t getAtom3Index() const
121  {
122  return termAtom2Idx;
123  }
124 
129  std::size_t getAtom4Index() const
130  {
131  return oopAtomIdx;
132  }
133 
138  double getForceConstant() const
139  {
140  return forceConst;
141  }
142 
143  private:
144  std::size_t termAtom1Idx;
145  std::size_t ctrAtomIdx;
146  std::size_t termAtom2Idx;
147  std::size_t oopAtomIdx;
148  double forceConst;
149  };
150  } // namespace ForceField
151 } // namespace CDPL
152 
153 #endif // CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTION_HPP
Stores parameters for a single MMFF94 out-of-plane bending interaction at a trigonal center.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:45
std::size_t getTerminalAtom2Index() const
Returns the zero-based index of the second in-plane terminal atom k.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:84
std::size_t getCenterAtomIndex() const
Returns the zero-based index of the central trigonal atom j.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:75
std::size_t getTerminalAtom1Index() const
Returns the zero-based index of the first in-plane terminal atom i.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:66
double getForceConstant() const
Returns the out-of-plane force constant.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:138
std::size_t getOutOfPlaneAtomIndex() const
Returns the zero-based index of the out-of-plane atom l.
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:93
std::size_t getAtom3Index() const
Returns the zero-based index of the second in-plane terminal atom (alias for getTerminalAtom2Index())...
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:120
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:56
std::size_t getAtom4Index() const
Returns the zero-based index of the out-of-plane atom (alias for getOutOfPlaneAtomIndex()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:129
std::size_t getAtom2Index() const
Returns the zero-based index of the central atom (alias for getCenterAtomIndex()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:111
std::size_t getAtom1Index() const
Returns the zero-based index of the first in-plane terminal atom (alias for getTerminalAtom1Index()).
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:102
The namespace of the Chemical Data Processing Library.