|
|
constexpr | QuantityValueOwnershipPolicy () noexcept |
| | default constructor
|
|
constexpr | QuantityValueOwnershipPolicy (const QuantityValueOwnershipPolicy &) noexcept=default |
| | copy constructor.
|
|
constexpr | QuantityValueOwnershipPolicy (QuantityValueOwnershipPolicy &&) noexcept=default |
| | move constructor.
|
template<typename T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (!AllowImplicitConversion)) |
| TFEL_HOST_DEVICE constexpr | QuantityValueOwnershipPolicy (const T &src) noexcept |
| | constructor from a value
|
template<typename T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (AllowImplicitConversion)) |
| TFEL_HOST_DEVICE constexpr | QuantityValueOwnershipPolicy (const T &src) noexcept |
| | constructor from a value
|
|
TFEL_HOST_DEVICE constexpr ValueType & | getValue () noexcept |
| | return the value
|
|
TFEL_HOST_DEVICE constexpr const ValueType & | getValue () const noexcept |
| | return the value
|
|
constexpr QuantityValueOwnershipPolicy & | operator= (const QuantityValueOwnershipPolicy &) noexcept=default |
| | assignement operator
|
|
constexpr QuantityValueOwnershipPolicy & | operator= (QuantityValueOwnershipPolicy &&) noexcept=default |
| | move assignement operator
|
template<typename T>
requires ((std::is_constructible_v<ValueType, T>)&& // (std::is_convertible_v<ValueType, T>)&& // (AllowImplicitConversion)) |
| TFEL_HOST_DEVICE constexpr QuantityValueOwnershipPolicy & | operator= (const T &src) noexcept |
| | constructor from a value
|
template<typename T>
requires ((std::is_same_v<ValueType, T>)&& // (AllowImplicitConversion)) |
| TFEL_HOST_DEVICE constexpr | operator T& () noexcept |
| | conversion operator
|
template<typename T>
requires ((std::is_same_v<ValueType, T>)&& // (AllowImplicitConversion)) |
| TFEL_HOST_DEVICE constexpr | operator T () const noexcept |
| | conversion operator
|
|
| ~QuantityValueOwnershipPolicy () noexcept=default |
| | destructor
|
template<StandardArithmeticTypeConcept ValueType, bool AllowImplicitConversion>
struct tfel::math::internals::QuantityValueOwnershipPolicy< ValueType, AllowImplicitConversion >
an helper structure which holds the value internally.
- Parameters
-
| ValueType | the underlying numerical type. |