| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef BALL_MOLMEC_PARAMETER_ATOMTYPES_H |
| 6 |
#define BALL_MOLMEC_PARAMETER_ATOMTYPES_H |
| 7 |
|
| 8 |
#ifndef BALL_FORMAT_PARAMETERSECTION_H |
| 9 |
# include <BALL/FORMAT/parameterSection.h> |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef BALL_KERNEL_ATOM_H |
| 13 |
# include <BALL/KERNEL/atom.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
#define BALL_ATOM_WILDCARD_NAME "*" |
| 17 |
#define BALL_ATOM_UNKNOWN_NAME "?" |
| 18 |
|
| 19 |
namespace BALL |
| 20 |
{ |
| 21 |
class ForceFieldParameters; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
class BALL_EXPORT AtomTypes |
| 29 |
: public ParameterSection |
| 30 |
{ |
| 31 |
public: |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
AtomTypes() ; |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
AtomTypes(const AtomTypes& atom_types) ; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
virtual ~AtomTypes() ; |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
virtual bool extractSection(Parameters& parameters, |
| 60 |
const String& section_name = "AtomTypes") ; |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
Atom::Type getType(const String& name) const ; |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
bool hasType(const String& name) const ; |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
String getTypeName(Atom::Type type) const ; |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
Size getNumberOfTypes() const ; |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
virtual void clear() ; |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
AtomTypes& operator = (const AtomTypes& atom_types) ; |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
bool operator == (const AtomTypes& atom_types) const ; |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
protected: |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
StringHashMap<Atom::Type> type_map_; |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
vector<String> names_; |
| 112 |
}; |
| 113 |
} |
| 114 |
|
| 115 |
#endif |