3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
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 >

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

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: