ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
|
Stores non-relativistic single-electron config: {n, l, number}. More...
#include <AtomData.hpp>
Inherits qip::Comparison< NonRelConfig >, and qip::Arithmetic< NonRelConfig >.
Public Member Functions | |
constexpr | NonRelConfig (int in_n=0, int in_l=-1, int in_num=0) |
std::string | symbol () const |
Returns symbol (e.g., 1s2 or 5p3) | |
bool | ok () const |
Checks if consistent (l>n etc.) | |
double | frac () const |
Filling fraction (accounting for spin) = num/[2*(2l+1)]. | |
NonRelConfig & | operator+= (const NonRelConfig &rhs) |
Provides addition and subtraction: adds 'num' iff n and l same. | |
NonRelConfig & | operator-= (const NonRelConfig &rhs) |
Public Attributes | |
int | n |
int | l |
int | num |
Friends | |
bool | operator== (const NonRelConfig &lhs, const NonRelConfig &rhs) |
Provides comparitor overloads. Compares n first, then l. | |
bool | operator< (const NonRelConfig &lhs, const NonRelConfig &rhs) |
Stores non-relativistic single-electron config: {n, l, number}.