Chemical Data Processing Library C++ API - Version 1.1.0
MMFF94AngleBendingInteraction.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94AngleBendingInteraction.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_MMFF94ANGLEBENDINGINTERACTION_HPP
30 #define CDPL_FORCEFIELD_MMFF94ANGLEBENDINGINTERACTION_HPP
31 
32 #include <cstddef>
33 
35 
36 
37 namespace CDPL
38 {
39 
40  namespace ForceField
41  {
42 
44  {
45 
46  public:
47  MMFF94AngleBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx,
48  unsigned int angle_type_idx, bool linear, double force_const, double ref_angle):
49  termAtom1Idx(term_atom1_idx),
50  ctrAtomIdx(ctr_atom_idx), termAtom2Idx(term_atom2_idx),
51  angleTypeIdx(angle_type_idx), linear(linear), forceConst(force_const), refAngle(ref_angle) {}
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 getAtom1Index() const
69  {
70  return termAtom1Idx;
71  }
72 
73  std::size_t getAtom2Index() const
74  {
75  return ctrAtomIdx;
76  }
77 
78  std::size_t getAtom3Index() const
79  {
80  return termAtom2Idx;
81  }
82 
83  unsigned int getAngleTypeIndex() const
84  {
85  return angleTypeIdx;
86  }
87 
88  bool isLinearAngle() const
89  {
90  return linear;
91  }
92 
93  double getForceConstant() const
94  {
95  return forceConst;
96  }
97 
98  double getReferenceAngle() const
99  {
100  return refAngle;
101  }
102 
103  void setReferenceAngle(double angle)
104  {
105  refAngle = angle;
106  }
107 
108  private:
109  std::size_t termAtom1Idx;
110  std::size_t ctrAtomIdx;
111  std::size_t termAtom2Idx;
112  unsigned int angleTypeIdx;
113  bool linear;
114  double forceConst;
115  double refAngle;
116  };
117  } // namespace ForceField
118 } // namespace CDPL
119 
120 #endif // CDPL_FORCEFIELD_MMFF94ANGLEBENDINGINTERACTION_HPP
APIPrefix.hpp
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
CDPL::ForceField::MMFF94AngleBendingInteraction::getTerminalAtom2Index
std::size_t getTerminalAtom2Index() const
Definition: MMFF94AngleBendingInteraction.hpp:63
CDPL::ForceField::MMFF94AngleBendingInteraction::getAtom1Index
std::size_t getAtom1Index() const
Definition: MMFF94AngleBendingInteraction.hpp:68
CDPL::ForceField::MMFF94AngleBendingInteraction::getCenterAtomIndex
std::size_t getCenterAtomIndex() const
Definition: MMFF94AngleBendingInteraction.hpp:58
CDPL::ForceField::MMFF94AngleBendingInteraction::isLinearAngle
bool isLinearAngle() const
Definition: MMFF94AngleBendingInteraction.hpp:88
CDPL::ForceField::MMFF94AngleBendingInteraction::getAtom3Index
std::size_t getAtom3Index() const
Definition: MMFF94AngleBendingInteraction.hpp:78
CDPL::ForceField::MMFF94AngleBendingInteraction::getTerminalAtom1Index
std::size_t getTerminalAtom1Index() const
Definition: MMFF94AngleBendingInteraction.hpp:53
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::ForceField::MMFF94AngleBendingInteraction::MMFF94AngleBendingInteraction
MMFF94AngleBendingInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom_idx, std::size_t term_atom2_idx, unsigned int angle_type_idx, bool linear, double force_const, double ref_angle)
Definition: MMFF94AngleBendingInteraction.hpp:47
CDPL::ForceField::MMFF94AngleBendingInteraction::setReferenceAngle
void setReferenceAngle(double angle)
Definition: MMFF94AngleBendingInteraction.hpp:103
CDPL::ForceField::MMFF94AngleBendingInteraction::getReferenceAngle
double getReferenceAngle() const
Definition: MMFF94AngleBendingInteraction.hpp:98
CDPL::ForceField::MMFF94AngleBendingInteraction::getAtom2Index
std::size_t getAtom2Index() const
Definition: MMFF94AngleBendingInteraction.hpp:73
CDPL_FORCEFIELD_API
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL::ForceField::MMFF94AngleBendingInteraction::getAngleTypeIndex
unsigned int getAngleTypeIndex() const
Definition: MMFF94AngleBendingInteraction.hpp:83
CDPL::ForceField::MMFF94AngleBendingInteraction
Definition: MMFF94AngleBendingInteraction.hpp:44
CDPL::ForceField::MMFF94AngleBendingInteraction::getForceConstant
double getForceConstant() const
Definition: MMFF94AngleBendingInteraction.hpp:93