ARTS 2.5.11 (git: 6827797f)
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.
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
constexpr std::strong_ordering order (const TwoLevelValueHolder &tv, ValueType t) const

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 406 of file quantum_numbers.h.

Constructor & Destructor Documentation

◆ TwoLevelValueHolder() [1/4]

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

◆ TwoLevelValueHolder() [2/4]

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

Definition at line 433 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 &&  )

◆ order()

constexpr std::strong_ordering Quantum::Number::TwoLevelValueHolder::order ( const TwoLevelValueHolder tv,
ValueType  t 
) const

Member Data Documentation

◆ low

◆ upp

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