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 2410 of file InputParameters.h.

2411 {
2412  return nullptr;
2413 }

◆ isFunctorNameTypeHelper()

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

Definition at line 2472 of file InputParameters.h.

Referenced by InputParameters::isFunctorNameType().

2473 {
2475 }
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 2419 of file InputParameters.h.

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

2420 {
2421  return std::is_same_v<T, MFEMScalarCoefficientName> ||
2422  std::is_same_v<T, MFEMVectorCoefficientName>;
2423 }

◆ isMFEMFunctorNameTypeHelper() [2/2]

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

Definition at line 2427 of file InputParameters.h.

2428 {
2429  return isMFEMFunctorNameTypeHelper(getNullptrExample<T>());
2430 }
constexpr bool isMFEMFunctorNameTypeHelper(std::vector< T, A > *)

◆ isScalarFunctorNameTypeHelper() [1/2]

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

Definition at line 2436 of file InputParameters.h.

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

2437 {
2438  return std::is_same_v<T, MooseFunctorName>
2439 #ifdef MOOSE_MFEM_ENABLED
2440  || std::is_same_v<T, MFEMScalarCoefficientName>
2441 #endif
2442  ;
2443 }

◆ isScalarFunctorNameTypeHelper() [2/2]

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

Definition at line 2447 of file InputParameters.h.

2448 {
2449  return isScalarFunctorNameTypeHelper(getNullptrExample<T>());
2450 }
constexpr bool isScalarFunctorNameTypeHelper(std::vector< T, A > *)

◆ isVectorFunctorNameTypeHelper() [1/2]

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

Definition at line 2454 of file InputParameters.h.

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

2455 {
2456 #ifdef MOOSE_MFEM_ENABLED
2457  return std::is_same_v<T, MFEMVectorCoefficientName>;
2458 #else
2459  return false;
2460 #endif
2461 }

◆ isVectorFunctorNameTypeHelper() [2/2]

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

Definition at line 2465 of file InputParameters.h.

2466 {
2467  return isVectorFunctorNameTypeHelper(getNullptrExample<T>());
2468 }
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