Reference documentation for deal.II version GIT c1ef6fab04 2022-12-05 23:05:01+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\}}\)
Static Public Member Functions | List of all members
Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic< T >::value > > 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< Dummy, T >::value &&std::is_same< T, bool >::value, std::unique_ptr< Patterns::PatternBase > > to_pattern ()
 
template<typename Dummy = T>
static std::enable_if_t< std::is_same< Dummy, T >::value &&!std::is_same< T, bool >::value &&std::is_integral< T >::value, std::unique_ptr< Patterns::PatternBase > > to_pattern ()
 
template<typename Dummy = T>
static std::enable_if_t< std::is_same< Dummy, T >::value &&!std::is_same< T, bool >::value &&std::is_floating_point< T >::value, 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< T >::value > >

Definition at line 1486 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<Dummy, T>::value && std::is_same<T, bool>::value, std::unique_ptr<Patterns::PatternBase> > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic< T >::value > >::to_pattern ( )
inlinestatic

Definition at line 1492 of file patterns.h.

◆ to_pattern() [2/3]

template<class T >
template<typename Dummy = T>
static std::enable_if_t<std::is_same<Dummy, T>::value && !std::is_same<T, bool>::value && std::is_integral<T>::value, std::unique_ptr<Patterns::PatternBase> > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic< T >::value > >::to_pattern ( )
inlinestatic

Definition at line 1502 of file patterns.h.

◆ to_pattern() [3/3]

template<class T >
template<typename Dummy = T>
static std::enable_if_t<std::is_same<Dummy, T>::value && !std::is_same<T, bool>::value && std::is_floating_point<T>::value, std::unique_ptr<Patterns::PatternBase> > Patterns::Tools::Convert< T, std::enable_if_t< std::is_arithmetic< T >::value > >::to_pattern ( )
inlinestatic

Definition at line 1513 of file patterns.h.

◆ to_string()

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

Definition at line 1520 of file patterns.h.

◆ to_value()

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

Definition at line 1536 of file patterns.h.


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