10 |
|
#include "types/AtomTypeProperties.h" |
11 |
|
#include "UseTheForce/DarkSide/atype_interface.h" |
12 |
|
|
13 |
< |
using name_space std; |
13 |
> |
using namespace std; |
14 |
|
|
15 |
< |
name_space oopse { |
15 |
> |
namespace oopse { |
16 |
|
/** |
17 |
|
* @class AtomType |
18 |
|
* AtomType is what OOPSE looks to for unchanging data about an atom. |
44 |
|
} |
45 |
|
|
46 |
|
void setIdent(int id) { |
47 |
< |
atp_.ident = id; |
47 |
> |
atp.ident = id; |
48 |
|
} |
49 |
|
|
50 |
|
int getIdent() { |
51 |
< |
return atp_.ident; |
51 |
> |
return atp.ident; |
52 |
|
} |
53 |
|
|
54 |
|
void setName(const std::string&name) { |
60 |
|
} |
61 |
|
|
62 |
|
void setLennardJones() { |
63 |
< |
atp_.is_LennardJones = 1; |
63 |
> |
atp.is_LennardJones = 1; |
64 |
|
} |
65 |
|
|
66 |
|
bool isLennardJones() { |
67 |
< |
return atp_.is_LennardJones; |
67 |
> |
return atp.is_LennardJones; |
68 |
|
} |
69 |
|
|
70 |
|
void setElectrostatic() { |
71 |
< |
atp_.is_Electrostatic = 1; |
71 |
> |
atp.is_Electrostatic = 1; |
72 |
|
} |
73 |
|
|
74 |
|
bool isElectrostatic() { |
75 |
< |
return atp_.is_Electrostatic; |
75 |
> |
return atp.is_Electrostatic; |
76 |
|
} |
77 |
|
|
78 |
|
void setEAM() { |
79 |
< |
atp_.is_EAM = 1; |
79 |
> |
atp.is_EAM = 1; |
80 |
|
} |
81 |
|
|
82 |
|
bool isEAM() { |
83 |
< |
return atp_.is_EAM; |
83 |
> |
return atp.is_EAM; |
84 |
|
} |
85 |
|
|
86 |
|
void setCharge() { |
87 |
< |
atp_.is_Charge = 1; |
88 |
< |
atp_.is_Electrostatic = 1; |
87 |
> |
atp.is_Charge = 1; |
88 |
> |
atp.is_Electrostatic = 1; |
89 |
|
} |
90 |
|
|
91 |
|
bool isCharge() { |
92 |
< |
return atp_.is_Charge; |
92 |
> |
return atp.is_Charge; |
93 |
|
} |
94 |
|
|
95 |
|
bool isDirectional() { |
96 |
< |
return atp_.is_Directional; |
96 |
> |
return atp.is_Directional; |
97 |
|
} |
98 |
|
|
99 |
|
bool isDipole() { |
100 |
< |
return atp_.is_Dipole; |
100 |
> |
return atp.is_Dipole; |
101 |
|
} |
102 |
|
|
103 |
|
bool isGayBerne() { |
104 |
< |
return atp_.is_GayBerne; |
104 |
> |
return atp.is_GayBerne; |
105 |
|
} |
106 |
|
|
107 |
|
bool isSticky() { |
108 |
< |
return atp_.is_Sticky; |
108 |
> |
return atp.is_Sticky; |
109 |
|
} |
110 |
|
|
111 |
|
bool isShape() { |
112 |
< |
return atp_.is_Shape; |
112 |
> |
return atp.is_Shape; |
113 |
|
} |
114 |
|
|
115 |
|
//below functions are just forward functions |
152 |
|
|
153 |
|
protected: |
154 |
|
|
155 |
< |
AtomTypeProperties atp_; |
155 |
> |
AtomTypeProperties atp; |
156 |
|
double mass_; |
157 |
|
std::string name_; |
158 |
|
|