Reference documentation for deal.II version 9.6.1
 
\(\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< Tensor< rank, dim, Number > > Struct Template Reference

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

Inheritance diagram for Patterns::Tools::Convert< Tensor< rank, dim, Number > >:

Public Types

using T = Tensor<rank, dim, 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 Tensor< rank, dim, Number > &s, const Patterns::PatternBase &p=*Convert< Tensor< rank, dim, Number > >::to_pattern())=delete
 
static Tensor< rank, dim, Number > to_value (const std::string &s, const Patterns::PatternBase &p=*Convert< Tensor< rank, dim, Number > >::to_pattern())=delete
 

Detailed Description

template<int rank, int dim, class Number>
struct Patterns::Tools::Convert< Tensor< rank, dim, Number > >

Definition at line 1974 of file patterns.h.

Member Typedef Documentation

◆ T

template<int rank, int dim, class Number>
using Patterns::Tools::Convert< Tensor< rank, dim, Number > >::T = Tensor<rank, dim, Number>

Definition at line 1976 of file patterns.h.

Member Function Documentation

◆ to_pattern() [1/2]

template<int rank, int dim, class Number>
static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< Tensor< rank, dim, Number > >::to_pattern ( )
inlinestatic

Definition at line 1978 of file patterns.h.

◆ to_string() [1/2]

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

Definition at line 1991 of file patterns.h.

◆ to_value() [1/2]

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

Definition at line 2016 of file patterns.h.

◆ to_pattern() [2/2]

static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< Tensor< rank, dim, 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< Tensor< rank, dim, Number >, void >::to_string ( const Tensor< rank, dim, 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 Tensor< rank, dim, Number > Patterns::Tools::Convert< Tensor< rank, dim, 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: