Reference documentation for deal.II version 9.6.2
 
\(\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
Patterns::Tools::Convert< std::complex< Number > > Struct Template Reference

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

Inheritance diagram for Patterns::Tools::Convert< std::complex< Number > >:

Public Types

using T = std::complex<Number>
 

Static Public Member Functions

static std::unique_ptr< Patterns::PatternBaseto_pattern ()
 
static std::string to_string (const T &t, const Patterns::PatternBase &pattern= *Convert< T >::to_pattern())
 
static T to_value (const std::string &s, const Patterns::PatternBase &pattern= *Convert< T >::to_pattern())
 
static std::unique_ptr< Patterns::PatternBaseto_pattern ()=delete
 
static std::string to_string (const std::complex< Number > &s, const Patterns::PatternBase &p=*Convert< std::complex< Number > >::to_pattern())=delete
 
static std::complex< Number > to_value (const std::string &s, const Patterns::PatternBase &p=*Convert< std::complex< Number > >::to_pattern())=delete
 

Detailed Description

template<class Number>
struct Patterns::Tools::Convert< std::complex< Number > >

Definition at line 2167 of file patterns.h.

Member Typedef Documentation

◆ T

template<class Number>
using Patterns::Tools::Convert< std::complex< Number > >::T = std::complex<Number>

Definition at line 2169 of file patterns.h.

Member Function Documentation

◆ to_pattern() [1/2]

template<class Number>
static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< std::complex< Number > >::to_pattern ( )
inlinestatic

Definition at line 2172 of file patterns.h.

◆ to_string() [1/2]

template<class Number>
static std::string Patterns::Tools::Convert< std::complex< Number > >::to_string ( const T & t,
const Patterns::PatternBase & pattern = *Convert<T>::to_pattern() )
inlinestatic

Definition at line 2185 of file patterns.h.

◆ to_value() [1/2]

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

Convert a string to a value, using the given pattern, or a default one.

Definition at line 2208 of file patterns.h.

◆ to_pattern() [2/2]

static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< std::complex< Number >, void >::to_pattern ( )
staticdelete

Return a std::unique_ptr to a Pattern that can be used to interpret a string as the type of the template argument, and the other way around.

While the current function (in the general Convert template) is deleted, it is implemented and available in the specializations of the Convert class template for particular kinds of template arguments T.

◆ to_string() [2/2]

static std::string Patterns::Tools::Convert< std::complex< Number >, void >::to_string ( const std::complex< Number > & s,
const Patterns::PatternBase & p = *Convert<T>::to_pattern() )
staticdelete

Return a string containing a textual version of the variable s. Use the pattern passed to perform the conversion, or create and use a default one.

While the current function (in the general Convert template) is deleted, it is implemented and available in the specializations of the Convert class template for particular kinds of template arguments T.

◆ to_value() [2/2]

static std::complex< Number > Patterns::Tools::Convert< std::complex< Number >, void >::to_value ( const std::string & s,
const Patterns::PatternBase & p = *Convert<T>::to_pattern() )
staticdelete

Convert a string to a value, using the given pattern. Use the pattern passed to perform the conversion, or create and use a default one.

While the current function (in the general Convert template) is deleted, it is implemented and available in the specializations of the Convert class template for particular kinds of template arguments T.


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