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::string > Struct Reference

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

Inheritance diagram for Patterns::Tools::Convert< std::string >:

Public Types

using T = std::string
 

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

Detailed Description

Definition at line 2230 of file patterns.h.

Member Typedef Documentation

◆ T

using Patterns::Tools::Convert< std::string >::T = std::string

Definition at line 2232 of file patterns.h.

Member Function Documentation

◆ to_pattern() [1/2]

static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< std::string >::to_pattern ( )
inlinestatic

Definition at line 2235 of file patterns.h.

◆ to_string() [1/2]

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

Definition at line 2241 of file patterns.h.

◆ to_value() [1/2]

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

Definition at line 2250 of file patterns.h.

◆ to_pattern() [2/2]

static std::unique_ptr< Patterns::PatternBase > Patterns::Tools::Convert< std::string, 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::string, void >::to_string ( const std::string & 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::string Patterns::Tools::Convert< std::string, 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: