www.mooseframework.org
Namespaces | Functions
Conversion.h File Reference

Go to the source code of this file.

Namespaces

 Moose
 

Functions

template<typename T >
Moose::stringToEnum (const std::string &s)
 
template<>
ExecFlagType Moose::stringToEnum< ExecFlagType > (const std::string &s)
 
template<>
QuadratureType Moose::stringToEnum< QuadratureType > (const std::string &s)
 
template<>
Order Moose::stringToEnum< Order > (const std::string &s)
 
template<>
CoordinateSystemType Moose::stringToEnum< CoordinateSystemType > (const std::string &s)
 
template<>
SolveType Moose::stringToEnum< SolveType > (const std::string &s)
 
template<>
LineSearchType Moose::stringToEnum< LineSearchType > (const std::string &s)
 
template<>
TimeIntegratorType Moose::stringToEnum< TimeIntegratorType > (const std::string &s)
 
template<typename T >
std::vector< T > Moose::vectorStringsToEnum (const MultiMooseEnum &v)
 
template<>
std::vector< ExecFlagTypeMoose::vectorStringsToEnum< ExecFlagType > (const MultiMooseEnum &v)
 
template<typename T >
std::string Moose::stringify (const T &t)
 conversion to string More...
 
std::string Moose::stringify (const SolveType &t)
 Convert solve type into human readable string. More...
 
std::string Moose::stringify (const ExecFlagType &t)
 Convert execute flags type into human readable string. More...
 
std::string Moose::stringify (const std::string &s)
 Add no-op stringify if the argument already is a string (must use overloading) More...
 
template<typename T , typename U >
std::string Moose::stringify (const std::pair< T, U > &p)
 Add pair stringify to support maps. More...
 
template<template< typename... > class T, typename... U>
std::string Moose::stringify (const T< U... > &c, const std::string &delim=",")
 Convert a container to a flat comma (or otherwise) separated string. More...
 
std::string Moose::stringifyExact (Real)
 Stringify Reals with enough precision to guarantee lossless Real -> string -> Real roundtrips. More...
 
Point toPoint (const std::vector< Real > &pos)
 Convert point represented as std::vector into Point. More...
 

Function Documentation

Point toPoint ( const std::vector< Real > &  pos)

Convert point represented as std::vector into Point.

Parameters
posPoint represented as a vector
Returns
Converted point

Definition at line 434 of file Conversion.C.

Referenced by Moose::stringify().

435 {
436  mooseAssert(pos.size() == LIBMESH_DIM, "Wrong array size while converting into a point");
437  return Point(pos[0], pos[1], pos[2]);
438 }