FireSTARR
Loading...
Searching...
No Matches
fs::wx::Dmc Class Reference

Duff Moisture Code value. More...

#include <FWI.h>

Inheritance diagram for fs::wx::Dmc:
Collaboration diagram for fs::wx::Dmc:

Public Member Functions

 Dmc (const Temperature &temperature, const RelativeHumidity &rh, const Precipitation &prec, const Dmc &dmc_previous, int month, MathSize latitude) noexcept
 Duff Moisture Code.
 
- Public Member Functions inherited from fs::data::Index< T >
 ~Index ()=default
 Destructor.
 
constexpr Index () noexcept
 Construct with a value of 0.
 
constexpr Index (const MathSize value) noexcept
 Construct with given value.
 
constexpr Index (Index< T > &&rhs) noexcept=default
 Move constructor.
 
constexpr Index (const Index< T > &rhs) noexcept=default
 Copy constructor.
 
Index< T > & operator= (Index< T > &&rhs) noexcept=default
 Move assignment.
 
Index< T > & operator= (const Index< T > &rhs) noexcept=default
 Copy assignment.
 
constexpr bool operator== (const Index< T > &rhs) const noexcept
 Equality operator.
 
constexpr bool operator!= (const Index< T > &rhs) const noexcept
 Not equals operator.
 
constexpr MathSize asValue () const noexcept
 Returns value as a MathSize.
 
constexpr bool operator< (const Index< T > rhs) const noexcept
 Less than operator.
 
constexpr bool operator> (const Index< T > rhs) const noexcept
 Greater than operator.
 
constexpr bool operator<= (const Index< T > rhs) const noexcept
 Less than or equal to operator.
 
constexpr bool operator>= (const Index< T > rhs) const noexcept
 Greater than or equal to operator.
 
constexpr Index< T > operator+ (const Index< T > rhs) const noexcept
 Addition operator.
 
constexpr Index< T > operator- (const Index< T > rhs) const noexcept
 Subtraction operator.
 
constexpr Index< T > & operator+= (const Index< T > rhs) noexcept
 Addition assignment operator.
 
constexpr Index< T > & operator-= (const Index< T > rhs) noexcept
 Subtraction assignment operator.
 

Static Public Attributes

static const Dmc Zero = Dmc(0)
 Duff Moisture Code of 0.
 
static const Dmc Invalid = Dmc(-1)
 

Detailed Description

Duff Moisture Code value.

Constructor & Destructor Documentation

◆ Dmc()

fs::wx::Dmc::Dmc ( const Temperature & temperature,
const RelativeHumidity & rh,
const Precipitation & prec,
const Dmc & dmc_previous,
int month,
MathSize latitude )
noexcept

Duff Moisture Code.

Parameters
temperatureTemperature (Celsius)
rhRelative Humidity (%)
precPrecipitation (24hr accumulated, noon-to-noon) (mm)
dmc_previousDuff Moisture Code for previous day
monthMonth to calculate for
latitudeLatitude to calculate for

The documentation for this class was generated from the following files: