Kindfield
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Friends Pages
gaussianprimitiveorbital.cpp
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 using std::max;
6 
8  m_weight(0),
9  m_xExponent(0),
10  m_yExponent(0),
11  m_zExponent(0),
12  m_exponent(0)
13 {
14 }
15 
16 GaussianPrimitiveOrbital::GaussianPrimitiveOrbital(double weight, int xExponent, int yExponent, int zExponent, double exponent) :
17  m_weight(weight),
18  m_xExponent(xExponent),
19  m_yExponent(yExponent),
20  m_zExponent(zExponent),
21  m_exponent(exponent)
22 {
23 
24 }
26 {
27  return m_exponent;
28 }
29 
31 {
32  m_exponent = exponent;
33 }
35 {
36  return m_zExponent;
37 }
38 
40 {
41  m_zExponent = zExponent;
42 }
44 {
45  return m_yExponent;
46 }
47 
49 {
50  m_yExponent = yExponent;
51 }
53 {
54  return m_xExponent;
55 }
56 
58 {
59  m_xExponent = xExponent;
60 }
62 {
63  return m_weight;
64 }
65 
67 {
68  m_weight = weight;
69 }
70 
72 {
73  return m_xExponent + m_yExponent + m_zExponent;
74 }
75 
77 {
78  return max(m_xExponent, max(m_yExponent, m_zExponent));
79 }
80