tfel
Loading...
Searching...
No Matches
tfel::material::BoundsCheckBase Struct Reference

an helper class More...

#include </home/runner/work/tfel/tfel/include/TFEL/Material/BoundsCheck.hxx>

Inheritance diagram for tfel::material::BoundsCheckBase:
tfel::material::BoundsCheck< 1u > tfel::material::BoundsCheck< 2u > tfel::material::BoundsCheck< 3u >

Static Public Member Functions

template<typename T>
static std::string convert_to_string (const T &value)
 convert to string
static TFEL_VISIBILITY_EXPORT void throwOutOfLowerBoundsException (const std::string_view, const std::string_view, const std::string_view)
static TFEL_VISIBILITY_EXPORT void throwOutOfUpperBoundsException (const std::string_view, const std::string_view, const std::string_view)
static TFEL_VISIBILITY_EXPORT void throwOutOfBoundsException (const std::string_view, const std::string_view, const std::string_view, const std::string_view)
static TFEL_VISIBILITY_EXPORT void displayOutOfLowerBoundsWarning (const std::string_view, const std::string_view, const std::string_view)
static TFEL_VISIBILITY_EXPORT void displayOutOfUpperBoundsWarning (const std::string_view, const std::string_view, const std::string_view)
static TFEL_VISIBILITY_EXPORT void displayOutOfBoundsWarning (const std::string_view, const std::string_view, const std::string_view, const std::string_view)
template<typename T>
static void lowerBoundCheck (const std::string_view name, const T value, const T lBound, const OutOfBoundsPolicy p=Strict)
template<tfel::math::ImmutableQuantityConcept QuantityType>
static void lowerBoundCheck (const std::string_view name, const QuantityType &value, const tfel::math::base_type< QuantityType > lBound, const OutOfBoundsPolicy p=Strict)
template<typename T>
static void upperBoundCheck (const std::string_view name, const T value, const T uBound, const OutOfBoundsPolicy p=Strict)
template<tfel::math::ImmutableQuantityConcept QuantityType>
static void upperBoundCheck (const std::string_view name, const QuantityType value, const tfel::math::base_type< QuantityType > uBound, const OutOfBoundsPolicy p=Strict)
template<typename T>
static void lowerAndUpperBoundsChecks (const std::string_view name, const T value, const T lBound, const T uBound, const OutOfBoundsPolicy p=Strict)
template<tfel::math::ImmutableQuantityConcept QuantityType>
static void lowerAndUpperBoundsChecks (const std::string_view name, const QuantityType value, const tfel::math::base_type< QuantityType > lBound, const tfel::math::base_type< QuantityType > uBound, const OutOfBoundsPolicy p=Strict)

Detailed Description

an helper class

Member Function Documentation

◆ convert_to_string()

template<typename T>
std::string tfel::material::BoundsCheckBase::convert_to_string ( const T & value)
inlinestatic

convert to string

Parameters
[in]valuevalue to be converted

◆ displayOutOfBoundsWarning()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::displayOutOfBoundsWarning ( const std::string_view ,
const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]lb: lower bound value
[in]ub: upper bound value

◆ displayOutOfLowerBoundsWarning()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::displayOutOfLowerBoundsWarning ( const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]b: lower bound value

◆ displayOutOfUpperBoundsWarning()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::displayOutOfUpperBoundsWarning ( const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]b: upper bound value

◆ throwOutOfBoundsException()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::throwOutOfBoundsException ( const std::string_view ,
const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]lb: lower bound value
[in]ub: upper bound value

◆ throwOutOfLowerBoundsException()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::throwOutOfLowerBoundsException ( const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]b: lower bound value

◆ throwOutOfUpperBoundsException()

TFEL_VISIBILITY_EXPORT void tfel::material::BoundsCheckBase::throwOutOfUpperBoundsException ( const std::string_view ,
const std::string_view ,
const std::string_view  )
static
Parameters
[in]n: variable name
[in]v: value
[in]b: upper bound value

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