Chemical Data Processing Library C++ API - Version 1.0.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 
35 
36 
37 namespace CDPL
38 {
39 
40  namespace ForceField
41  {
42 
44  {
45 
46  public:
47  MMFF94OutOfPlaneBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx,
48  std::size_t oop_atom_idx, double force_const):
49  termAtom1Idx(term_atom1_idx),
50  ctrAtomIdx(ctr_atom_idx), termAtom2Idx(term_atom2_idx),
51  oopAtomIdx(oop_atom_idx), forceConst(force_const) {}
52 
53  std::size_t getTerminalAtom1Index() const
54  {
55  return termAtom1Idx;
56  }
57 
58  std::size_t getCenterAtomIndex() const
59  {
60  return ctrAtomIdx;
61  }
62 
63  std::size_t getTerminalAtom2Index() const
64  {
65  return termAtom2Idx;
66  }
67 
68  std::size_t getOutOfPlaneAtomIndex() const
69  {
70  return oopAtomIdx;
71  }
72 
73  std::size_t getAtom1Index() const
74  {
75  return termAtom1Idx;
76  }
77 
78  std::size_t getAtom2Index() const
79  {
80  return ctrAtomIdx;
81  }
82 
83  std::size_t getAtom3Index() const
84  {
85  return termAtom2Idx;
86  }
87 
88  std::size_t getAtom4Index() const
89  {
90  return oopAtomIdx;
91  }
92 
93  double getForceConstant() const
94  {
95  return forceConst;
96  }
97 
98  private:
99  std::size_t termAtom1Idx;
100  std::size_t ctrAtomIdx;
101  std::size_t termAtom2Idx;
102  std::size_t oopAtomIdx;
103  double forceConst;
104  };
105  } // namespace ForceField
106 } // namespace CDPL
107 
108 #endif // CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTION_HPP
APIPrefix.hpp
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getAtom3Index
std::size_t getAtom3Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:83
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getAtom1Index
std::size_t getAtom1Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:73
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getCenterAtomIndex
std::size_t getCenterAtomIndex() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:58
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::MMFF94OutOfPlaneBendingInteraction
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)
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:47
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getForceConstant
double getForceConstant() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:93
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getTerminalAtom1Index
std::size_t getTerminalAtom1Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:53
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:44
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getOutOfPlaneAtomIndex
std::size_t getOutOfPlaneAtomIndex() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:68
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getAtom2Index
std::size_t getAtom2Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:78
CDPL_FORCEFIELD_API
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getTerminalAtom2Index
std::size_t getTerminalAtom2Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:63
CDPL::ForceField::MMFF94OutOfPlaneBendingInteraction::getAtom4Index
std::size_t getAtom4Index() const
Definition: MMFF94OutOfPlaneBendingInteraction.hpp:88