Reference documentation for deal.II version GIT relicensing-407-g162f6fe865 2024-04-17 02:30:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > > Struct Template Reference

#include <deal.II/base/patterns.h>

Static Public Member Functions

template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > &&std::is_same_v< T, bool >, std::unique_ptr< Patterns::PatternBase > > to_pattern ()
 
template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > &&!std::is_same_v< T, bool > &&std::is_integral_v< T >, std::unique_ptr< Patterns::PatternBase > > to_pattern ()
 
template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > &&!std::is_same_v< T, bool > &&std::is_floating_point_v< T >, std::unique_ptr< Patterns::PatternBase > > to_pattern ()
 
static std::string to_string (const T &value, const Patterns::PatternBase &p= *Convert< T >::to_pattern())
 
static T to_value (const std::string &s, const Patterns::PatternBase &p= *Convert< T >::to_pattern())
 

Detailed Description

template<class T>
struct Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >

Definition at line 1483 of file patterns.h.

Member Function Documentation

◆ to_pattern() [1/3]

template<class T >
template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > && std::is_same_v< T, bool >, std::unique_ptr< Patterns::PatternBase > > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >::to_pattern ( )
inlinestatic

Definition at line 1489 of file patterns.h.

◆ to_pattern() [2/3]

template<class T >
template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > && !std::is_same_v< T, bool > && std::is_integral_v< T >, std::unique_ptr< Patterns::PatternBase > > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >::to_pattern ( )
inlinestatic

Definition at line 1499 of file patterns.h.

◆ to_pattern() [3/3]

template<class T >
template<typename Dummy = T>
static std::enable_if_t< std::is_same_v< Dummy, T > && !std::is_same_v< T, bool > && std::is_floating_point_v< T >, std::unique_ptr< Patterns::PatternBase > > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >::to_pattern ( )
inlinestatic

Definition at line 1510 of file patterns.h.

◆ to_string()

template<class T >
static std::string Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >::to_string ( const T &  value,
const Patterns::PatternBase p = *Convert<T>::to_pattern() 
)
inlinestatic

Definition at line 1517 of file patterns.h.

◆ to_value()

template<class T >
static T Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic_v< T > > >::to_value ( const std::string &  s,
const Patterns::PatternBase p = *Convert<T>::to_pattern() 
)
inlinestatic

Definition at line 1533 of file patterns.h.


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