ARTS
2.4.0(git:4fb77825)
|
Container class for Quantum Numbers. More...
#include <quantum.h>
Public Types | |
typedef std::array< Rational, Index(QuantumNumberType::FINAL_ENTRY)> | QuantumContainer |
Public Member Functions | |
constexpr | QuantumNumbers () noexcept |
Initializer with undefined values. More... | |
constexpr | QuantumNumbers (Rational J, Rational N, Rational v) noexcept |
constexpr Rational | operator[] (const Index qn) const noexcept |
Access operator. More... | |
constexpr Rational | operator[] (const QuantumNumberType qn) const noexcept |
Access operator. More... | |
Rational & | operator[] (const Index qn) noexcept |
Access operator. More... | |
Rational & | operator[] (const QuantumNumberType qn) noexcept |
Access operator. More... | |
void | Set (Index qn, Rational r) |
Set quantum number at position. More... | |
void | Set (QuantumNumberType qn, Rational r) |
Set quantum number at position. More... | |
void | Set (String qn, Rational r) |
Set quantum number at position. More... | |
const QuantumContainer & | GetNumbers () const |
Get the numbers. More... | |
Index | nNumbers () const |
The number of defined quantum numbers. More... | |
bool | Compare (const QuantumNumbers &qn) const |
Compare Quantum Numbers Ignores any undefined numbers in the comparison. More... | |
Private Attributes | |
QuantumContainer | mqnumbers |
typedef std::array<Rational, Index(QuantumNumberType::FINAL_ENTRY)> QuantumNumbers::QuantumContainer |
|
inlineconstexprnoexcept |
Initializer with undefined values.
Definition at line 228 of file quantum.h.
References RATIONAL_UNDEFINED.
|
inlineconstexprnoexcept |
Definition at line 250 of file quantum.h.
References N, and RATIONAL_UNDEFINED.
bool QuantumNumbers::Compare | ( | const QuantumNumbers & | qn | ) | const |
Compare Quantum Numbers Ignores any undefined numbers in the comparison.
[in] | qn | Quantum Numbers to compare to |
Definition at line 33 of file quantum.cc.
References GetNumbers(), J, and mqnumbers.
Referenced by operator==().
|
inline |
Get the numbers.
Definition at line 338 of file quantum.h.
References mqnumbers.
Referenced by Compare(), and xml_write_to_stream().
|
inline |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Set quantum number at position.
[in] | qn | Index Pos to set at |
[in] | r | Rational to set |
Definition at line 310 of file quantum.h.
Referenced by ArtsXMLTag::get_attribute_value(), operator>>(), QuantumFieldDescription::Parse(), postprocess_group1_hitran(), postprocess_group2_hitran(), postprocess_group5_hitran(), postprocess_group6_hitran(), postprocess_group6oh_hitran(), and test_zeeman().
|
inline |
Set quantum number at position.
[in] | qn | String Pos to set at by name |
[in] | r | Rational to set |
Definition at line 330 of file quantum.h.
References mqnumbers, and string2quantumnumbertype().
|
private |
Definition at line 362 of file quantum.h.
Referenced by Compare(), GetNumbers(), nNumbers(), operator[](), and Set().