ARTS 2.5.11 (git: 6827797f)
Quantum::Number::HalfIntegerValue Struct Reference

Holds half integer values, but only its denominator. More...

#include <quantum_numbers.h>

Public Member Functions

constexpr Rational val () const noexcept
 Returns the value as a Rational, keeping that this is a half-integer.
 
constexpr std::strong_ordering operator<=> (const HalfIntegerValue &h) const
 

Public Attributes

Index x {std::numeric_limits<Index>::lowest()}
 

Detailed Description

Holds half integer values, but only its denominator.

Definition at line 85 of file quantum_numbers.h.

Member Function Documentation

◆ operator<=>()

constexpr std::strong_ordering Quantum::Number::HalfIntegerValue::operator<=> ( const HalfIntegerValue h) const
inlineconstexpr

Definition at line 93 of file quantum_numbers.h.

◆ val()

constexpr Rational Quantum::Number::HalfIntegerValue::val ( ) const
inlineconstexprnoexcept

Returns the value as a Rational, keeping that this is a half-integer.

Definition at line 89 of file quantum_numbers.h.

References x.

Referenced by Quantum::Number::Value::low(), and Quantum::Number::Value::upp().

Member Data Documentation

◆ x

Index Quantum::Number::HalfIntegerValue::x {std::numeric_limits<Index>::lowest()}

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