37 UnitCell() : _a(1.0), _b(1.0), _c(1.0),
38 _alpha(90.0), _beta(90.0), _gamma(90.0),
39 sgroup(
"P1"), zval(1) { }
42 _alpha(90.0), _beta(90.0), _gamma(90.0),
43 sgroup(
"P1"), zval(1) { }
45 greal a(
void)
const {
return(_a); }
46 void a(
const greal x) { _a = x; }
48 greal b(
void)
const {
return(_b); }
49 void b(
const greal x) { _b = x; }
51 greal c(
void)
const {
return(_c); }
52 void c(
const greal x) { _c = x; }
54 greal alpha(
void)
const {
return(_alpha); }
55 void alpha(
const greal x) { _alpha = x; }
57 greal beta(
void)
const {
return(_beta); }
58 void beta(
const greal x) { _beta = x; }
60 greal gamma(
void)
const {
return(_gamma); }
61 void gamma(
const greal x) { _gamma = x; }
63 std::string spaceGroup(
void)
const {
return(sgroup); }
64 void spaceGroup(
const std::string s) { sgroup = s; }
66 int z(
void)
const {
return(zval); }
67 void z(
const int i) { zval = i; }
69 friend std::ostream& operator<<(std::ostream& os,
const UnitCell& u) {
70 os <<
"<UNITCELL A='" << u._a <<
"' B='" << u._b <<
"' C='" << u._c <<
"' ALPHA='";
71 os << u._alpha <<
"' BETA='" << u._beta <<
"' GAMMA='" << u._gamma <<
"' SPACEGROUP='";
72 os << u.sgroup <<
"' Z='" << u.zval <<
"'/>";
78 greal _a, _b, _c, _alpha, _beta, _gamma;