FireSTARR
Loading...
Searching...
No Matches
fs::StrictType< ConcreteType, Units, ValueType, InvalidValue > Struct Template Reference

A wrapper around a ValueType to ensure correct types are used. More...

#include <StrictType.h>

Public Types

using T = StrictType<ConcreteType, Units, ValueType, InvalidValue>
 
using concrete_type = ConcreteType
 
using value_type = ValueType
 

Public Member Functions

constexpr StrictType (const ValueType value) noexcept
 
constexpr StrictType (T &&rhs) noexcept=default
 
constexpr StrictType (const T &rhs) noexcept=default
 
T & operator= (T &&rhs) noexcept=default
 
T & operator= (const T &rhs) noexcept=default
 
constexpr auto operator== (const T &rhs) const
 
constexpr auto operator<=> (const T &rhs) const
 
constexpr ConcreteType operator+ (const T &rhs) const noexcept
 
constexpr ConcreteType operator- (const T &rhs) const noexcept
 
constexpr ConcreteType operator* (const ValueType &rhs) const noexcept
 
constexpr ConcreteType operator/ (const ValueType &rhs) const noexcept
 
constexpr T & operator+= (const T &rhs) noexcept
 
constexpr T & operator-= (const T &rhs) noexcept
 
constexpr T & operator*= (const T &rhs) noexcept
 
constexpr T & operator/= (const T &rhs) noexcept
 
 operator string () noexcept
 

Static Public Member Functions

static consteval ConcreteType Zero ()
 
static consteval ConcreteType Invalid ()
 

Public Attributes

ValueType value {static_cast<ValueType>(0.0)}
 

Static Public Attributes

static constexpr auto units = Units
 
static constexpr auto invalid_value = InvalidValue
 

Detailed Description

template<class ConcreteType, units::UnitType Units = units::Unitless, class ValueType = MathSize, int InvalidValue = -1>
struct fs::StrictType< ConcreteType, Units, ValueType, InvalidValue >

A wrapper around a ValueType to ensure correct types are used.


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