42 #ifndef TEUCHOS_UTILS_H 43 #define TEUCHOS_UTILS_H 49 #include "Teuchos_toString.hpp" 59 class TEUCHOSCORE_LIB_DLL_EXPORT
Utils 64 static void aboutBuild();
68 static double chop(
const double& x);
76 static void setChopVal(
double chopVal) {chopVal_ = chopVal;}
80 {
return ( c==
' ' || c ==
'\t' || c==
'\n' ); }
83 static std::string trimWhiteSpace(
const std::string& str );
86 static std::string toString(
const double& x);
89 static std::string toString(
const int& x);
92 static std::string toString(
const unsigned int& x);
96 static double pi() {
return M_PI;}
98 static double pi() {
return 3.14159265358979323846;}
102 static std::string getParallelExtension(
108 static double chopVal_;
static bool isWhiteSpace(const char c)
Determine if a char is whitespace or not.
static void setChopVal(double chopVal)
Set the chopping value, below which numbers are considered to be zero.
static double getChopVal()
Get the chopping value, below which numbers are considered to be zero.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.
This class provides some basic std::string and floating-point utilities for Teuchos.