ARTS 2.5.11 (git: 6827797f)
|
A logical struct for global quantum numbers with species identifiers. More...
#include <quantum_numbers.h>
Public Member Functions | |
GlobalState ()=default | |
GlobalState (Index i, ValueList v={}) | |
GlobalState (const Species::IsotopeRecord &ir) | |
GlobalState (std::string_view s, Index v=version) | |
Species::IsotopeRecord | Isotopologue () const noexcept |
Species::Species | Species () const noexcept |
GlobalState | LowerLevel () const |
GlobalState | UpperLevel () const |
std::strong_ordering | operator<=> (const GlobalState &g) const |
auto | operator== (const GlobalState &g) const |
auto | operator!= (const GlobalState &g) const |
bool | part_of (const GlobalState &other) const |
Checks wheter all of the LHS is part of RHS. | |
LevelTest | part_of (const GlobalState &g, const LocalState &l) const |
Checks wheter all of the LHS is part of any of the RHS. | |
bool | good () const |
Test if there are bad quantum numbers (undefined ones) or if the isotopologue is not a normal target. | |
Public Attributes | |
Index | isotopologue_index {-1} |
ValueList | val {} |
Static Public Attributes | |
static constexpr Index | version = 1 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GlobalState &gs) |
std::istream & | operator>> (std::istream &is, GlobalState &gs) |
A logical struct for global quantum numbers with species identifiers.
Definition at line 1045 of file quantum_numbers.h.
|
default |
|
inlineexplicit |
Definition at line 1053 of file quantum_numbers.h.
|
inlineexplicit |
Definition at line 1056 of file quantum_numbers.h.
|
explicit |
Definition at line 1033 of file quantum_numbers.cc.
References ARTS_USER_ERROR, ARTS_USER_ERROR_IF, Quantum::Number::count_items(), Species::find_species_index(), isotopologue_index, Quantum::Number::items(), v, val, and version.
bool Quantum::Number::GlobalState::good | ( | ) | const |
Test if there are bad quantum numbers (undefined ones) or if the isotopologue is not a normal target.
Definition at line 1144 of file quantum_numbers.cc.
References Species::is_normal_isotopologue().
Referenced by xml_read_from_stream().
|
noexcept |
Definition at line 405 of file quantum_numbers.cc.
References isotopologue_index, and Species::Isotopologues.
Referenced by LineShape::from_artscat4(), global_quantumidentifier(), Absorption::Lines::Isotopologue(), Species(), species_iso_match(), species_match(), and Absorption::Lines::SpeciesName().
GlobalState Quantum::Number::GlobalState::LowerLevel | ( | ) | const |
Definition at line 1007 of file quantum_numbers.cc.
References val.
Referenced by ArrayOfQuantumIdentifierFromLines().
|
inline |
Definition at line 1077 of file quantum_numbers.h.
|
inline |
Definition at line 1071 of file quantum_numbers.h.
|
inline |
Definition at line 1076 of file quantum_numbers.h.
LevelTest Quantum::Number::GlobalState::part_of | ( | const GlobalState & | g, |
const LocalState & | l | ||
) | const |
Checks wheter all of the LHS is part of any of the RHS.
Definition at line 1055 of file quantum_numbers.cc.
References ARTS_USER_ERROR_IF, Quantum::Number::ValueList::has(), isotopologue_index, v, Quantum::Number::LocalState::val, and val.
bool Quantum::Number::GlobalState::part_of | ( | const GlobalState & | other | ) | const |
Checks wheter all of the LHS is part of RHS.
Definition at line 974 of file quantum_numbers.cc.
References Quantum::Number::ValueList::check_match(), isotopologue_index, and val.
|
noexcept |
Definition at line 409 of file quantum_numbers.cc.
References Isotopologue(), and Species::IsotopeRecord::spec.
Referenced by LineShape::from_artscat4(), LineShape::from_pressurebroadeningdata(), jacobianAddAbsSpecies(), jacobianAddBasicCatalogParameter(), jacobianAddNLTE(), jacobianAddShapeCatalogParameter(), Absorption::Lines::Lines(), Absorption::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitranOnlineStream(), LineShape::LegacyPressureBroadeningData::self_listed(), Absorption::Lines::Species(), species_match(), and Quantum::Number::StateMatch::StateMatch().
GlobalState Quantum::Number::GlobalState::UpperLevel | ( | ) | const |
Definition at line 1013 of file quantum_numbers.cc.
References val.
Referenced by ArrayOfQuantumIdentifierFromLines().
|
friend |
Definition at line 413 of file quantum_numbers.cc.
|
friend |
Definition at line 417 of file quantum_numbers.cc.
Index Quantum::Number::GlobalState::isotopologue_index {-1} |
Definition at line 1048 of file quantum_numbers.h.
Referenced by GlobalState(), Isotopologue(), part_of(), species_match(), Absorption::split_list_of_external_lines(), and Quantum::Number::StateMatch::StateMatch().
ValueList Quantum::Number::GlobalState::val {} |
Definition at line 1049 of file quantum_numbers.h.
Referenced by lm_hitran_2017::calcw(), global_quantumidentifier(), GlobalState(), LowerLevel(), Quantum::Helpers::molecular_term_symbol(), part_of(), Absorption::Lines::QuantumIdentityOfLine(), lm_hitran_2017::read(), ReadArrayOfARTSCAT(), ReadARTSCAT(), Absorption::ReadFromArtscat5Stream(), Absorption::ReadFromHitranOnlineStream(), ReadHITRAN(), Absorption::LineMixing::Makarov2020etal::relaxation_matrix_offdiagonal(), Absorption::LineMixing::LinearRovibErrorCorrectedSudden::relaxation_matrix_offdiagonal(), Absorption::SingleLine::SetAutomaticZeeman(), lm_hitran_2017::sorter_calcw(), Quantum::Number::StateMatch::StateMatch(), and UpperLevel().
|
staticconstexpr |
Definition at line 1046 of file quantum_numbers.h.
Referenced by GlobalState(), xml_read_from_stream(), and xml_write_to_stream().