Chemical Data Processing Library C++ API - Version 1.0.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 
35 
36 
37 namespace CDPL
38 {
39 
40  namespace ForceField
41  {
42 
44  {
45 
46  public:
47  MMFF94TorsionInteraction(std::size_t term_atom1_idx, std::size_t ctr_atom1_idx, std::size_t ctr_atom2_idx,
48  std::size_t term_atom2_idx, unsigned int tor_type_idx, double tor_param1,
49  double tor_param2, double tor_param3):
50  termAtom1Idx(term_atom1_idx),
51  ctrAtom1Idx(ctr_atom1_idx), ctrAtom2Idx(ctr_atom2_idx),
52  termAtom2Idx(term_atom2_idx), torTypeIdx(tor_type_idx), torParam1(tor_param1), torParam2(tor_param2),
53  torParam3(tor_param3) {}
54 
55  std::size_t getTerminalAtom1Index() const
56  {
57  return termAtom1Idx;
58  }
59 
60  std::size_t getCenterAtom1Index() const
61  {
62  return ctrAtom1Idx;
63  }
64 
65  std::size_t getCenterAtom2Index() const
66  {
67  return ctrAtom2Idx;
68  }
69 
70  std::size_t getTerminalAtom2Index() const
71  {
72  return termAtom2Idx;
73  }
74 
75  std::size_t getAtom1Index() const
76  {
77  return termAtom1Idx;
78  }
79 
80  std::size_t getAtom2Index() const
81  {
82  return ctrAtom1Idx;
83  }
84 
85  std::size_t getAtom3Index() const
86  {
87  return ctrAtom2Idx;
88  }
89 
90  std::size_t getAtom4Index() const
91  {
92  return termAtom2Idx;
93  }
94 
95  unsigned int getTorsionTypeIndex() const
96  {
97  return torTypeIdx;
98  }
99 
100  double getTorsionParameter1() const
101  {
102  return torParam1;
103  }
104 
105  double getTorsionParameter2() const
106  {
107  return torParam2;
108  }
109 
110  double getTorsionParameter3() const
111  {
112  return torParam3;
113  }
114 
115  private:
116  std::size_t termAtom1Idx;
117  std::size_t ctrAtom1Idx;
118  std::size_t ctrAtom2Idx;
119  std::size_t termAtom2Idx;
120  unsigned int torTypeIdx;
121  double torParam1;
122  double torParam2;
123  double torParam3;
124  };
125  } // namespace ForceField
126 } // namespace CDPL
127 
128 #endif // CDPL_FORCEFIELD_MMFF94TORSIONINTERACTION_HPP
APIPrefix.hpp
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
CDPL::ForceField::MMFF94TorsionInteraction::getTorsionParameter3
double getTorsionParameter3() const
Definition: MMFF94TorsionInteraction.hpp:110
CDPL::ForceField::MMFF94TorsionInteraction::getAtom3Index
std::size_t getAtom3Index() const
Definition: MMFF94TorsionInteraction.hpp:85
CDPL::ForceField::MMFF94TorsionInteraction::getCenterAtom1Index
std::size_t getCenterAtom1Index() const
Definition: MMFF94TorsionInteraction.hpp:60
CDPL::ForceField::MMFF94TorsionInteraction::getAtom1Index
std::size_t getAtom1Index() const
Definition: MMFF94TorsionInteraction.hpp:75
CDPL::ForceField::MMFF94TorsionInteraction::getAtom2Index
std::size_t getAtom2Index() const
Definition: MMFF94TorsionInteraction.hpp:80
CDPL::ForceField::MMFF94TorsionInteraction::getTorsionParameter2
double getTorsionParameter2() const
Definition: MMFF94TorsionInteraction.hpp:105
CDPL::ForceField::MMFF94TorsionInteraction::getCenterAtom2Index
std::size_t getCenterAtom2Index() const
Definition: MMFF94TorsionInteraction.hpp:65
CDPL::ForceField::MMFF94TorsionInteraction::getTorsionParameter1
double getTorsionParameter1() const
Definition: MMFF94TorsionInteraction.hpp:100
CDPL::ForceField::MMFF94TorsionInteraction::getTerminalAtom1Index
std::size_t getTerminalAtom1Index() const
Definition: MMFF94TorsionInteraction.hpp:55
CDPL::ForceField::MMFF94TorsionInteraction
Definition: MMFF94TorsionInteraction.hpp:44
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::ForceField::MMFF94TorsionInteraction::getTerminalAtom2Index
std::size_t getTerminalAtom2Index() const
Definition: MMFF94TorsionInteraction.hpp:70
CDPL::ForceField::MMFF94TorsionInteraction::getTorsionTypeIndex
unsigned int getTorsionTypeIndex() const
Definition: MMFF94TorsionInteraction.hpp:95
CDPL::ForceField::MMFF94TorsionInteraction::getAtom4Index
std::size_t getAtom4Index() const
Definition: MMFF94TorsionInteraction.hpp:90
CDPL_FORCEFIELD_API
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL::ForceField::MMFF94TorsionInteraction::MMFF94TorsionInteraction
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)
Definition: MMFF94TorsionInteraction.hpp:47