version 3.10-dev
Dumux::OptionalScalar< T > Struct Template Reference

A type for an optional scalar (contains either a valid number or NaN) More...

#include <dumux/common/optionalscalar.hh>

Inheritance diagram for Dumux::OptionalScalar< T >:

Description

template<class T>
struct Dumux::OptionalScalar< T >
Template Parameters
TType of the underlying floating point number type

Public Member Functions

 OptionalScalar ()=default
 
 OptionalScalar (T value)
 
value () const
 
 operator bool () const
 

Constructor & Destructor Documentation

◆ OptionalScalar() [1/2]

template<class T >
Dumux::OptionalScalar< T >::OptionalScalar ( )
default

◆ OptionalScalar() [2/2]

template<class T >
Dumux::OptionalScalar< T >::OptionalScalar ( value)
inline

Member Function Documentation

◆ operator bool()

template<class T >
Dumux::OptionalScalar< T >::operator bool ( ) const
inlineexplicit

◆ value()

template<class T >
T Dumux::OptionalScalar< T >::value ( ) const
inline

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