tfel
Loading...
Searching...
No Matches
mfront::VariableBoundsDescription Struct Reference

a structure in charge of describing bounds on a variable. Two kinds of bounds are considered: More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/VariableBoundsDescription.hxx>

Public Types

enum  BoundsType { LOWER , UPPER , LOWERANDUPPER }
 bounds type

Public Member Functions

 VariableBoundsDescription ()=default
 default constructor
 VariableBoundsDescription (VariableBoundsDescription &&)=default
 copy constructor
 VariableBoundsDescription (const VariableBoundsDescription &)=default
 move constructor
VariableBoundsDescription & operator= (VariableBoundsDescription &&)=default
 move assignement
VariableBoundsDescription & operator= (const VariableBoundsDescription &)=default
 standard assignement
bool hasLowerBound () const
bool hasUpperBound () const
 ~VariableBoundsDescription () noexcept
 destructor

Public Attributes

BoundsType boundsType
 type of the bound
long double lowerBound = std::numeric_limits<long double>::min()
long double upperBound = std::numeric_limits<long double>::max()
short component = -1
size_t lineNumber = 0u

Detailed Description

a structure in charge of describing bounds on a variable. Two kinds of bounds are considered:

  • physical bounds: give the bounds out of which this variable is not physically defined. For example, a temperature must be positive.
  • (standard) bounds: give the bounds out of which the correlation has not been identified.

Member Function Documentation

◆ hasLowerBound()

bool mfront::VariableBoundsDescription::hasLowerBound ( ) const
nodiscard
Returns
true if the bounds type is either LOWER or LOWERANDUPPER

◆ hasUpperBound()

bool mfront::VariableBoundsDescription::hasUpperBound ( ) const
nodiscard
Returns
true if the bounds type is either UPPER or LOWERANDUPPER

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