16 #include "libmesh/enum_order.h" 17 #include "libmesh/enum_quadrature_type.h" 18 #include "libmesh/enum_fe_family.h" 19 #include "libmesh/enum_elem_type.h" 64 std::ostringstream
os;
73 return v ?
"true" :
"false";
80 return std::to_string(v);
85 return std::to_string(v);
90 return std::to_string(v);
95 return std::to_string(v);
100 return std::to_string(v);
105 return std::to_string(v);
118 std::string
stringify(
const std::string & s);
133 template <
typename T,
typename U>
135 stringify(
const std::pair<T, U> & p,
const std::string & delim =
":")
153 template <
template <
typename...>
class T,
typename... U>
156 const std::string & delim =
", ",
157 const std::string & elem_encl =
"",
158 bool enclose_list_in_curly_braces =
false)
161 if (enclose_list_in_curly_braces)
163 const auto begin = c.begin();
164 const auto end = c.end();
165 for (
auto i = begin; i != end; ++i)
166 str += (i != begin ? delim :
"") + elem_encl +
stringify(*i) + elem_encl;
167 if (enclose_list_in_curly_braces)
179 template <
typename T1,
typename T2>
183 std::vector<T2>
out(in.begin(), in.end());
192 Point
toPoint(
const std::vector<Real> & pos);
EigenSolveType
Type of the eigen solve.
RelationshipManagerType
Main types of Relationship Managers.
T stringToEnum(const std::string &s)
CoordinateSystemType stringToEnum< CoordinateSystemType >(const std::string &s)
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
std::basic_ostream< charT, traits > * os
TimeIntegratorType stringToEnum< TimeIntegratorType >(const std::string &s)
Order stringToEnum< Order >(const std::string &s)
std::string stringifyExact(Real)
Stringify Reals with enough precision to guarantee lossless Real -> string -> Real roundtrips...
LineSearchType
Type of the line search.
Point toPoint(const std::vector< Real > &pos)
Convert point represented as std::vector into Point.
QuadratureType stringToEnum< QuadratureType >(const std::string &s)
std::string stringify(const T &t)
conversion to string
LineSearchType stringToEnum< LineSearchType >(const std::string &s)
SolveType stringToEnum< SolveType >(const std::string &s)
std::vector< T2 > vectorCast(std::vector< T2 > in)
std::vector< T > vectorStringsToEnum(const MultiMooseEnum &v)
TimeIntegratorType
Time integrators.
RelationshipManagerType stringToEnum< RelationshipManagerType >(const std::string &s)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
SolveType
Type of the solve.