https://mooseframework.inl.gov
Functions
Moose::internal Namespace Reference

Functions

template<typename T , typename V >
std::string stringify_variant (const V &value)
 
template<typename T >
constexpr T * getNullptrExample ()
 
template<typename T >
constexpr bool isMFEMFunctorNameTypeHelper (T *)
 
template<typename T , typename A >
constexpr bool isMFEMFunctorNameTypeHelper (std::vector< T, A > *)
 
template<typename T >
constexpr bool isScalarFunctorNameTypeHelper (T *)
 
template<typename T , typename A >
constexpr bool isScalarFunctorNameTypeHelper (std::vector< T, A > *)
 
template<typename T >
constexpr bool isVectorFunctorNameTypeHelper (T *)
 
template<typename T , typename A >
constexpr bool isVectorFunctorNameTypeHelper (std::vector< T, A > *)
 
template<typename T >
constexpr bool isFunctorNameTypeHelper (T *ex)
 

Function Documentation

◆ getNullptrExample()

template<typename T >
constexpr T* Moose::internal::getNullptrExample ( )

Definition at line 2454 of file InputParameters.h.

2455 {
2456  return nullptr;
2457 }

◆ isFunctorNameTypeHelper()

template<typename T >
constexpr bool Moose::internal::isFunctorNameTypeHelper ( T *  ex)

Definition at line 2516 of file InputParameters.h.

Referenced by InputParameters::isFunctorNameType().

2517 {
2519 }
constexpr bool isVectorFunctorNameTypeHelper(std::vector< T, A > *)
constexpr bool isScalarFunctorNameTypeHelper(std::vector< T, A > *)

◆ isMFEMFunctorNameTypeHelper() [1/2]

template<typename T >
constexpr bool Moose::internal::isMFEMFunctorNameTypeHelper ( T *  )

Definition at line 2463 of file InputParameters.h.

Referenced by InputParameters::appendFunctorDescription(), and isMFEMFunctorNameTypeHelper().

2464 {
2465  return std::is_same_v<T, MFEMScalarCoefficientName> ||
2466  std::is_same_v<T, MFEMVectorCoefficientName>;
2467 }

◆ isMFEMFunctorNameTypeHelper() [2/2]

template<typename T , typename A >
constexpr bool Moose::internal::isMFEMFunctorNameTypeHelper ( std::vector< T, A > *  )

Definition at line 2471 of file InputParameters.h.

2472 {
2473  return isMFEMFunctorNameTypeHelper(getNullptrExample<T>());
2474 }
constexpr bool isMFEMFunctorNameTypeHelper(std::vector< T, A > *)

◆ isScalarFunctorNameTypeHelper() [1/2]

template<typename T >
constexpr bool Moose::internal::isScalarFunctorNameTypeHelper ( T *  )

Definition at line 2480 of file InputParameters.h.

Referenced by InputParameters::appendFunctorDescription(), isFunctorNameTypeHelper(), and isScalarFunctorNameTypeHelper().

2481 {
2482  return std::is_same_v<T, MooseFunctorName>
2483 #ifdef MOOSE_MFEM_ENABLED
2484  || std::is_same_v<T, MFEMScalarCoefficientName>
2485 #endif
2486  ;
2487 }

◆ isScalarFunctorNameTypeHelper() [2/2]

template<typename T , typename A >
constexpr bool Moose::internal::isScalarFunctorNameTypeHelper ( std::vector< T, A > *  )

Definition at line 2491 of file InputParameters.h.

2492 {
2493  return isScalarFunctorNameTypeHelper(getNullptrExample<T>());
2494 }
constexpr bool isScalarFunctorNameTypeHelper(std::vector< T, A > *)

◆ isVectorFunctorNameTypeHelper() [1/2]

template<typename T >
constexpr bool Moose::internal::isVectorFunctorNameTypeHelper ( T *  )

Definition at line 2498 of file InputParameters.h.

Referenced by InputParameters::appendFunctorDescription(), isFunctorNameTypeHelper(), and isVectorFunctorNameTypeHelper().

2499 {
2500 #ifdef MOOSE_MFEM_ENABLED
2501  return std::is_same_v<T, MFEMVectorCoefficientName>;
2502 #else
2503  return false;
2504 #endif
2505 }

◆ isVectorFunctorNameTypeHelper() [2/2]

template<typename T , typename A >
constexpr bool Moose::internal::isVectorFunctorNameTypeHelper ( std::vector< T, A > *  )

Definition at line 2509 of file InputParameters.h.

2510 {
2511  return isVectorFunctorNameTypeHelper(getNullptrExample<T>());
2512 }
constexpr bool isVectorFunctorNameTypeHelper(std::vector< T, A > *)

◆ stringify_variant()

template<typename T , typename V >
std::string Moose::internal::stringify_variant ( const V &  value)
inline

Definition at line 114 of file Conversion.h.

115 {
116  return std::holds_alternative<T>(value) ? stringify(std::get<T>(value)) : "";
117 }
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
std::string stringify(const T< U... > &c, const std::string &delim=", ", const std::string &elem_encl="", bool enclose_list_in_curly_braces=false)
Convert a container to a string with elements separated by delimiter of user&#39;s choice.
Definition: Conversion.h:174