ARTS 2.5.11 (git: 6827797f)
|
Holds string values but can only hold sizeof(Index) long values. More...
#include <quantum_numbers.h>
Public Member Functions | |
constexpr std::string_view | val () const noexcept |
Returns the value in such a way that no \0 remains in the view. | |
constexpr | StringValue ()=default |
Default initializer to a zero-first solution. | |
constexpr | StringValue (std::string_view s) |
Set to expected value from a view of something at most N-char long. | |
constexpr std::strong_ordering | operator<=> (const StringValue &sv) const |
Public Attributes | |
std::array< char, N > | x {'\0'} |
Static Public Attributes | |
static constexpr std::size_t | N = 16 |
Holds string values but can only hold sizeof(Index) long values.
Definition at line 29 of file quantum_numbers.h.
|
constexprdefault |
Default initializer to a zero-first solution.
|
inlineexplicitconstexpr |
Set to expected value from a view of something at most N-char long.
This means that we will need to either redesign quantum numbers or make an exception for the type, e.g., is \tilde{X} perhaps OK as ~X? We have no opinion at this moment
Definition at line 45 of file quantum_numbers.h.
References ARTS_USER_ERROR_IF, N, and x.
|
inlineconstexpr |
Definition at line 65 of file quantum_numbers.h.
|
inlineconstexprnoexcept |
Returns the value in such a way that no \0 remains in the view.
Definition at line 34 of file quantum_numbers.h.
Referenced by Quantum::Number::Value::str_low(), and Quantum::Number::Value::str_upp().
|
staticconstexpr |
Definition at line 30 of file quantum_numbers.h.
Referenced by operator<=>(), Quantum::Number::Value::read(), StringValue(), val(), and Quantum::Number::Value::write().
std::array<char, N> Quantum::Number::StringValue::x {'\0'} |
Definition at line 31 of file quantum_numbers.h.
Referenced by Quantum::Number::Value::level_match(), operator<=>(), StringValue(), and val().