Debian Codegraph @

include/BALL/MOLMEC/PARAMETER/quadraticAngleBend.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4
5 #ifndef BALL_MOLMEC_PARAMETER_QUADRATICANGLEBEND_H
6 #define BALL_MOLMEC_PARAMETER_QUADRATICANGLEBEND_H
7
8 #ifndef BALL_FORMAT_PARAMETERSECTION_H
9 # include <BALL/FORMAT/parameterSection.h>
10 #endif
11
12 #ifndef BALL_MOLMEC_PARAMETER_ATOMTYPES_H
13 # include <BALL/MOLMEC/PARAMETER/atomTypes.h>
14 #endif
15
16 #ifndef BALL_KERNEL_ATOM_H
17 # include <BALL/KERNEL/atom.h>
18 #endif
19
20 namespace BALL
21 {
22 /** QuadraticAngleBend.
23 Molecular Mechanics Parameter: class describing the parameters required to
24 implement a harmonic potential describing angle bends. \par
25
26 \ingroup MolmecParameters
27 */
28 class BALL_EXPORT QuadraticAngleBend
29 : public ParameterSection
30 {
31 public:
32
33 enum
34 {
35 UNKNOWN
36 };
37
38 struct BALL_EXPORT Values
39 {
40 float theta0;
41 float k;
42 };
43
44 struct BALL_EXPORT Data
45 {
46 Atom* atom1;
47 Atom* atom2;
48 Atom* atom3;
49 Values values;
50 };
51
52
53 /** Default constructor.
54 */
55 QuadraticAngleBend();
56
57 /** Destructor.
58 */
59 virtual ~QuadraticAngleBend() ;
60
61 /** Clear method.
62 */
63 virtual void clear() ;
64
65 /** Reads a parameter section from an INI file.
66 This method reads the section given in section_name from ini_file,
67 interprets (if given) a format line, reads the data from this section according to
68 the format, and builds some datastructures for fast and easy acces this data.
69 */
70 virtual bool extractSection(ForceFieldParameters& parameters, const String& section_name);
71 virtual bool extractSection(Parameters& parameters, const String& section_name);
72
73 /** Queries whether a parameter set is defined for the given atom types.
74 */
75 bool hasParameters(Atom::Type I, Atom::Type J, Atom::Type K) const;
76
77 /** Returns the parameters for a given atom type combination.
78 */
79 QuadraticAngleBend::Values getParameters
80 (Atom::Type I, Atom::Type J, Atom::Type K) const;
81
82 /** Assign the parameters for a given atom type combination.
83 If no parameters are defined for this combination, false is
84 returned and nothing is changed.
85 */
86 bool assignParameters
87 (QuadraticAngleBend::Values& parameters,
88 Atom::Type I, Atom::Type J, Atom::Type K) const;
89
90 protected:
91
92 Size number_of_atom_types_;
93
94 vector<Values> values_;
95
96 vector<Index> value_index_;
97 };
98 } // namespace BALL
99
100 #endif // BALL_MOLMEC_PARAMETER_QUADRATICBONDSTRETCH_H