| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef BALL_MOLMEC_PARAMETER_POTENTIAL1210_H |
| 6 |
#define BALL_MOLMEC_PARAMETER_POTENTIAL1210_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 |
namespace BALL |
| 17 |
{ |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
class BALL_EXPORT Potential1210 |
| 26 |
: public ParameterSection |
| 27 |
{ |
| 28 |
public: |
| 29 |
|
| 30 |
enum |
| 31 |
{ |
| 32 |
UNKNOWN |
| 33 |
}; |
| 34 |
|
| 35 |
struct BALL_EXPORT Values |
| 36 |
{ |
| 37 |
float A; |
| 38 |
float B; |
| 39 |
}; |
| 40 |
|
| 41 |
struct BALL_EXPORT Data |
| 42 |
{ |
| 43 |
Atom* atom1; |
| 44 |
Atom* atom2; |
| 45 |
Values values; |
| 46 |
}; |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
Potential1210() ; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
Potential1210(const Potential1210& pot1210) ; |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
virtual ~Potential1210() ; |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
virtual void clear() ; |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
virtual bool extractSection(ForceFieldParameters& parameters, |
| 80 |
const String& section_name) ; |
| 81 |
|
| 82 |
|
| 83 |
virtual bool extractSection(Parameters& parameters, |
| 84 |
const String& section_name) ; |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
bool hasParameters(Atom::Type I, Atom::Type J) const ; |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
Potential1210::Values getParameters |
| 93 |
(Atom::Type I, Atom::Type J) const ; |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
bool assignParameters |
| 100 |
(Potential1210::Values& parameters, |
| 101 |
Atom::Type I, Atom::Type J) const ; |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
const Potential1210& operator = (const Potential1210& pot1210) ; |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
bool operator == (const Potential1210& pot1210) const ; |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
protected: |
| 124 |
|
| 125 |
Size number_of_atom_types_; |
| 126 |
|
| 127 |
std::vector<float> A_; |
| 128 |
|
| 129 |
std::vector<float> B_; |
| 130 |
|
| 131 |
std::vector<bool> is_defined_; |
| 132 |
|
| 133 |
std::vector<String> names_; |
| 134 |
}; |
| 135 |
} |
| 136 |
|
| 137 |
#endif |