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

The values of two levels. More...

#include <quantum_numbers.h>

Public Member Functions

constexpr TwoLevelValueHolder (ValueDescription u, ValueDescription l, Type t)
 Constructor to ensure two ValueDescription have the same type, for IO purposes. More...
constexpr TwoLevelValueHolder (Type t) noexcept
constexpr TwoLevelValueHolder (const TwoLevelValueHolder &)=default
constexpr TwoLevelValueHolder (TwoLevelValueHolder &&) noexcept=default
constexpr TwoLevelValueHolderoperator= (const TwoLevelValueHolder &)=default
constexpr TwoLevelValueHolderoperator= (TwoLevelValueHolder &&) noexcept=default

Public Attributes

ValueHolder upp
ValueHolder low

Detailed Description

The values of two levels.

Its ValueDescription constructor ensures that we have two valid types and converts integer input in one to half-integer in case there's a 'mismatch'

Definition at line 389 of file quantum_numbers.h.

Constructor & Destructor Documentation

◆ TwoLevelValueHolder() [1/4]

constexpr Quantum::Number::TwoLevelValueHolder::TwoLevelValueHolder ( ValueDescription  u,
ValueDescription  l,
Type  t 

Constructor to ensure two ValueDescription have the same type, for IO purposes.

Definition at line 394 of file quantum_numbers.h.

References ARTS_USER_ERROR_IF, Quantum::Number::common_value_type(), Quantum::Number::ValueHolder::h, Interpolation::l(), u, and Quantum::Number::HalfIntegerValue::x.

◆ TwoLevelValueHolder() [2/4]

constexpr Quantum::Number::TwoLevelValueHolder::TwoLevelValueHolder ( Type  t)

Definition at line 416 of file quantum_numbers.h.

◆ TwoLevelValueHolder() [3/4]

constexpr Quantum::Number::TwoLevelValueHolder::TwoLevelValueHolder ( const TwoLevelValueHolder )

◆ TwoLevelValueHolder() [4/4]

constexpr Quantum::Number::TwoLevelValueHolder::TwoLevelValueHolder ( TwoLevelValueHolder &&  )

Member Function Documentation

◆ operator=() [1/2]

constexpr TwoLevelValueHolder & Quantum::Number::TwoLevelValueHolder::operator= ( const TwoLevelValueHolder )

◆ operator=() [2/2]

constexpr TwoLevelValueHolder & Quantum::Number::TwoLevelValueHolder::operator= ( TwoLevelValueHolder &&  )

Member Data Documentation

◆ low

◆ upp

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