80 |
|
|
81 |
|
} |
82 |
|
|
83 |
+ |
BondType* getExactBondType(const std::string &at1, const std::string &at2){ |
84 |
+ |
std::vector<std::string> keys; |
85 |
+ |
keys.push_back(at1); |
86 |
+ |
keys.push_back(at2); |
87 |
+ |
return bondTypeCont_.find(keys); |
88 |
+ |
} |
89 |
+ |
|
90 |
+ |
BendType* getExactBendType(const std::string &at1, const std::string &at2, |
91 |
+ |
const std::string &at3){ |
92 |
+ |
std::vector<std::string> keys; |
93 |
+ |
keys.push_back(at1); |
94 |
+ |
keys.push_back(at2); |
95 |
+ |
keys.push_back(at3); |
96 |
+ |
return bendTypeCont_.find(keys); |
97 |
+ |
} |
98 |
+ |
|
99 |
+ |
TorsionType* getExactTorsionType(const std::string &at1, const std::string &at2, |
100 |
+ |
const std::string &at3, const std::string &at4){ |
101 |
+ |
std::vector<std::string> keys; |
102 |
+ |
keys.push_back(at1); |
103 |
+ |
keys.push_back(at2); |
104 |
+ |
keys.push_back(at3); |
105 |
+ |
keys.push_back(at4); |
106 |
+ |
return torsionTypeCont_.find(keys); |
107 |
+ |
} |
108 |
|
bool ForceField::addAtomType(const std::string &at, AtomType* atomType) { |
109 |
|
std::vector<std::string> keys; |
110 |
|
keys.push_back(at); |