|
ARTS
2.3.1285(git:92a29ea9-dirty)
|
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 |
|
inlinenoexcept |
Initializer with undefined values.
Definition at line 228 of file quantum.h.
References RATIONAL_UNDEFINED.
Definition at line 250 of file quantum.h.
References J, 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 FINAL_ENTRY, GetNumbers(), and mqnumbers.
Referenced by line_match_level(), main(), and operator==().
|
inline |
Get the numbers.
Definition at line 338 of file quantum.h.
Referenced by Compare(), and xml_write_to_stream().
|
inline |
|
inlinenoexcept |
|
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.
References FINAL_ENTRY, and r.
Referenced by ArtsXMLTag::get_attribute_value(), main(), 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 | Index Pos to set at |
| [in] | r | Rational to set |
Definition at line 320 of file quantum.h.
References FINAL_ENTRY, and r.
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 r, and string2quantumnumbertype().
|
private |