![]() |
Reference documentation for deal.II version 9.6.0
|
#include <deal.II/base/patterns.h>
Static Public Member Functions | |
static std::unique_ptr< Patterns::PatternBase > | to_pattern ()=delete |
static std::string | to_string (const T &s, const Patterns::PatternBase &p= *Convert< T >::to_pattern())=delete |
static T | to_value (const std::string &s, const Patterns::PatternBase &p= *Convert< T >::to_pattern())=delete |
Converter class. This class is used to generate strings and Patterns associated to the given type, and to convert from a string to the given type and vice versa.
The second template parameter is used internally to allow for advanced SFINAE (substitution failure is not an error) tricks used to specialise this class for arbitrary STL containers and maps.
Definition at line 1297 of file patterns.h.
|
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
.
|
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
.
|
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
.