42 #ifndef TEUCHOS_UTILS_H
43 #define TEUCHOS_UTILS_H
49 #include "Teuchos_toString.hpp"
59 class TEUCHOSCORE_LIB_DLL_EXPORT
Utils
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 long long& x);
95 static std::string toString(
const unsigned int& x);
99 static double pi() {
return M_PI;}
101 static double pi() {
return 3.14159265358979323846;}
105 static std::string getParallelExtension(
111 static double chopVal_;
This class provides some basic std::string and floating-point utilities for Teuchos.
static void setChopVal(double chopVal)
Set the chopping value, below which numbers are considered to be zero.
static void aboutBuild()
print a description of the current build.
static double getChopVal()
Get the chopping value, below which numbers are considered to be zero.
static bool isWhiteSpace(const char c)
Determine if a char is whitespace or not.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...