Debian Codegraph @

include/BALL/MOLMEC/PARAMETER/forceFieldParameters.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // Molecular Mechanics: general force field parameter class
5
6 #ifndef BALL_MOLMEC_FORCEFIELDPARAMETERS_H
7 #define BALL_MOLMEC_FORCEFIELDPARAMETERS_H
8
9 #ifndef BALL_COMMON_H
10 # include <BALL/common.h>
11 #endif
12
13 #ifndef BALL_FORMAT_PARAMETERS_H
14 # include <BALL/FORMAT/parameters.h>
15 #endif
16
17 #ifndef BALL_MOLMEC_PARAMETER_ATOMTYPES_H
18 # include <BALL/MOLMEC/PARAMETER/atomTypes.h>
19 #endif
20
21 namespace BALL
22 {
23 class AtomTypes;
24
25 /** Force field parameter class.
26
27 \ingroup MolmecParameters
28 */
29 class BALL_EXPORT ForceFieldParameters
30 : public Parameters
31 {
32 public:
33
34 BALL_CREATE(ForceFieldParameters)
35
36 friend class ForceField;
37
38 /**@name Constructors and destructor
39 */
40 //@{
41
42 /** Default constructor.
43 */
44 ForceFieldParameters();
45
46 /** Constructor.
47 */
48 ForceFieldParameters(const String& filename);
49
50 /** Copy constructor
51 */
52 ForceFieldParameters(const ForceFieldParameters& force_field_parameter);
53
54 /** Destructor.
55 */
56 virtual ~ForceFieldParameters()
57 ;
58
59 //@}
60 /** @name Assignment
61 */
62 //@{
63
64 /** Clear method
65 */
66 virtual void clear()
67 ;
68
69 /** Assignment operator
70 */
71 const ForceFieldParameters& operator = (const ForceFieldParameters& param);
72
73 //@}
74 /**@name Accessors
75 */
76 //@{
77
78 /** Return a reference to the atom type parameter section
79 */
80 AtomTypes& getAtomTypes();
81
82 /** Read the contents of the INI file and interpret them.
83 */
84 virtual bool init();
85
86 //@}
87 /** @name Predicates
88 */
89 //@{
90
91 /** Valididty predicate.
92 Return <b>true</b> if the force field parameters were correctly
93 initialized, the internal INI file is valid and the internal atom types
94 object is valid.
95 @return bool - <tt>valid_ && parameter_file_.isValid() && atom_types_.isValid()</tt>
96 */
97 virtual bool isValid() const;
98
99 /** Equality operator
100 */
101 bool operator == (const ForceFieldParameters& param) const;
102
103 //@}
104
105 protected:
106
107 /*_@name Protected Members
108 */
109 //_@{
110
111 /*_ the atom types section
112 */
113 AtomTypes atom_types_;
114
115 //_@}
116 };
117 } // namespace BALL
118
119 #endif // BALL_MOLMEC_FORCEFIELDPARAMETERS_H