ARTS 2.5.4 (git: 31ce4f0e)
Quantum::Number::GlobalState Struct Reference

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
 
bool operator== (const GlobalState &that) const
 
bool operator!= (const GlobalState &that) const
 
bool part_of (const GlobalState &other) const
 Checks wheter all of the LHS is part of RHS. More...
 
LevelTest part_of (const GlobalState &g, const LocalState &l) const
 Checks wheter all of the LHS is part of any of the RHS. More...
 
bool good () const
 Test if there are bad quantum numbers (undefined ones) or if the isotopologue is not a normal target. More...
 

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)
 

Detailed Description

A logical struct for global quantum numbers with species identifiers.

Definition at line 994 of file quantum_numbers.h.

Constructor & Destructor Documentation

◆ GlobalState() [1/4]

Quantum::Number::GlobalState::GlobalState ( )
default

◆ GlobalState() [2/4]

Quantum::Number::GlobalState::GlobalState ( Index  i,
ValueList  v = {} 
)
inlineexplicit

Definition at line 1002 of file quantum_numbers.h.

◆ GlobalState() [3/4]

Quantum::Number::GlobalState::GlobalState ( const Species::IsotopeRecord ir)
inlineexplicit

Definition at line 1005 of file quantum_numbers.h.

◆ GlobalState() [4/4]

Quantum::Number::GlobalState::GlobalState ( std::string_view  s,
Index  v = version 
)
explicit

Member Function Documentation

◆ good()

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 1153 of file quantum_numbers.cc.

References Species::is_normal_isotopologue().

◆ Isotopologue()

◆ LowerLevel()

GlobalState Quantum::Number::GlobalState::LowerLevel ( ) const

Definition at line 1016 of file quantum_numbers.cc.

References val.

Referenced by ArrayOfQuantumIdentifierFromLines().

◆ operator!=()

Definition at line 979 of file quantum_numbers.cc.

◆ operator==()

bool Quantum::Number::GlobalState::operator== ( const GlobalState that) const

Definition at line 974 of file quantum_numbers.cc.

References isotopologue_index, and val.

◆ part_of() [1/2]

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 1064 of file quantum_numbers.cc.

References ARTS_USER_ERROR_IF, Quantum::Number::ValueList::has(), isotopologue_index, Interpolation::l(), v, and val.

◆ part_of() [2/2]

bool Quantum::Number::GlobalState::part_of ( const GlobalState other) const

Checks wheter all of the LHS is part of RHS.

Definition at line 983 of file quantum_numbers.cc.

References isotopologue_index, and val.

◆ Species()

◆ UpperLevel()

GlobalState Quantum::Number::GlobalState::UpperLevel ( ) const

Definition at line 1022 of file quantum_numbers.cc.

References val.

Referenced by ArrayOfQuantumIdentifierFromLines().

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const GlobalState gs 
)
friend

Definition at line 413 of file quantum_numbers.cc.

◆ operator>>

std::istream & operator>> ( std::istream &  is,
GlobalState gs 
)
friend

Definition at line 417 of file quantum_numbers.cc.

Member Data Documentation

◆ isotopologue_index

Index Quantum::Number::GlobalState::isotopologue_index {-1}

◆ val

◆ version

constexpr Index Quantum::Number::GlobalState::version = 1
staticconstexpr

Definition at line 995 of file quantum_numbers.h.

Referenced by GlobalState(), xml_read_from_stream(), and xml_write_to_stream().


The documentation for this struct was generated from the following files: