![]() |
pairinteraction
A Rydberg Interaction Calculator
|
Base class for a ket. More...
#include <Ket.hpp>
Data Structures | |
struct | hash |
Public Member Functions | |
Ket ()=delete | |
virtual | ~Ket ()=default |
bool | has_quantum_number_f () const |
bool | has_quantum_number_m () const |
bool | has_parity () const |
double | get_energy () const |
double | get_quantum_number_f () const |
double | get_quantum_number_m () const |
Parity | get_parity () const |
virtual std::string | get_label () const =0 |
Protected Member Functions | |
Ket (double energy, double f, double m, Parity p) | |
bool | operator== (const Ket &other) const |
Protected Attributes | |
double | energy |
double | quantum_number_f |
double | quantum_number_m |
Parity | parity |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Ket &ket) |
Base class for a ket.
This base class represents a ket. It is a base class for specific ket implementations. Its constructor is protected to indicate that derived classes should not allow direct instantiation. Instead, a factory class should be provided that is a friend of the derived class and can create instances of it.
|
delete |
|
virtualdefault |
double pairinteraction::Ket::get_energy | ( | ) | const |
|
pure virtual |
Implemented in pairinteraction::KetAtom, and pairinteraction::KetPair< Scalar >.
Parity pairinteraction::Ket::get_parity | ( | ) | const |
double pairinteraction::Ket::get_quantum_number_f | ( | ) | const |
Definition at line 27 of file Ket.cpp.
References quantum_number_f.
double pairinteraction::Ket::get_quantum_number_m | ( | ) | const |
Definition at line 29 of file Ket.cpp.
References quantum_number_m.
bool pairinteraction::Ket::has_parity | ( | ) | const |
Definition at line 23 of file Ket.cpp.
References parity, and pairinteraction::UNKNOWN.
bool pairinteraction::Ket::has_quantum_number_f | ( | ) | const |
Definition at line 15 of file Ket.cpp.
References quantum_number_f.
bool pairinteraction::Ket::has_quantum_number_m | ( | ) | const |
Definition at line 19 of file Ket.cpp.
References quantum_number_m.
Definition at line 33 of file Ket.cpp.
References energy, parity, quantum_number_f, and quantum_number_m.
Referenced by pairinteraction::KetAtom::operator==(), and pairinteraction::KetPair< Scalar >::operator==().
|
friend |
|
protected |
Definition at line 54 of file Ket.hpp.
Referenced by get_energy(), pairinteraction::Ket::hash::operator()(), and operator==().
|
protected |
Definition at line 57 of file Ket.hpp.
Referenced by get_parity(), has_parity(), pairinteraction::Ket::hash::operator()(), and operator==().
|
protected |
Definition at line 55 of file Ket.hpp.
Referenced by pairinteraction::KetAtom::get_label(), get_quantum_number_f(), has_quantum_number_f(), pairinteraction::Ket::hash::operator()(), and operator==().
|
protected |
Definition at line 56 of file Ket.hpp.
Referenced by pairinteraction::DOCTEST_TEST_CASE(), pairinteraction::KetAtom::get_label(), get_quantum_number_m(), has_quantum_number_m(), pairinteraction::Ket::hash::operator()(), and operator==().