ARTS 2.5.11 (git: 725533f0)
Quantum::Number::LocalState Struct Reference

A logical struct for local quantum numbers. More...

#include <quantum_numbers.h>

Public Member Functions

std::strong_ordering operator<=> (const LocalState &l) const
 
auto operator== (const LocalState &l) const
 
auto operator!= (const LocalState &l) const
 
 LocalState ()=default
 
template<typename... Values>
 LocalState (Values... vals)
 
void set_unsorted_qns (const Array< Type > &vals)
 
String keys () const
 
String values () const
 
bool same_types_as (const LocalState &that) const
 
bool good () const
 Test if there are bad quantum numbers (undefined ones)
 

Public Attributes

ValueList val {}
 

Friends

std::ostream & operator<< (std::ostream &os, const LocalState &vl)
 ouptut stream if all values
 
std::istream & operator>> (std::istream &is, LocalState &vl)
 input stream must have pre-set size
 

Detailed Description

A logical struct for local quantum numbers.

Definition at line 1010 of file quantum_numbers.h.

Constructor & Destructor Documentation

◆ LocalState() [1/2]

Quantum::Number::LocalState::LocalState ( )
default

◆ LocalState() [2/2]

template<typename... Values>
Quantum::Number::LocalState::LocalState ( Values...  vals)
inline

Definition at line 1022 of file quantum_numbers.h.

Member Function Documentation

◆ good()

bool Quantum::Number::LocalState::good ( ) const

Test if there are bad quantum numbers (undefined ones)

Definition at line 1142 of file quantum_numbers.cc.

◆ keys()

String Quantum::Number::LocalState::keys ( ) const

Definition at line 374 of file quantum_numbers.cc.

References val.

◆ operator!=()

auto Quantum::Number::LocalState::operator!= ( const LocalState l) const
inline

Definition at line 1017 of file quantum_numbers.h.

◆ operator<=>()

std::strong_ordering Quantum::Number::LocalState::operator<=> ( const LocalState l) const
inline

Definition at line 1013 of file quantum_numbers.h.

References val.

◆ operator==()

auto Quantum::Number::LocalState::operator== ( const LocalState l) const
inline

Definition at line 1016 of file quantum_numbers.h.

◆ same_types_as()

bool Quantum::Number::LocalState::same_types_as ( const LocalState that) const

◆ set_unsorted_qns()

void Quantum::Number::LocalState::set_unsorted_qns ( const Array< Type > &  vals)

Definition at line 1050 of file quantum_numbers.cc.

References Quantum::Number::ValueList::add_type_wo_sort(), and val.

Referenced by xml_read_from_stream().

◆ values()

String Quantum::Number::LocalState::values ( ) const

Definition at line 386 of file quantum_numbers.cc.

References val.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const LocalState vl 
)
friend

ouptut stream if all values

Definition at line 982 of file quantum_numbers.cc.

◆ operator>>

std::istream & operator>> ( std::istream &  is,
LocalState vl 
)
friend

input stream must have pre-set size

Definition at line 986 of file quantum_numbers.cc.

Member Data Documentation

◆ val


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