10#ifndef TEUCHOS_UTILS_H 
   11#define TEUCHOS_UTILS_H 
   17#include "Teuchos_toString.hpp" 
   27  class TEUCHOSCORE_LIB_DLL_EXPORT 
Utils 
   33      static double chop(
const double& x);
 
   45        { 
return ( 
c==
' ' || 
c ==
'\t' || 
c==
'\n' ); }
 
 
   48      static std::string trimWhiteSpace( 
const std::string& 
str );
 
   51      static std::string toString(
const double& x);
 
   54      static std::string toString(
const int& x);
 
   57      static std::string toString(
const long long& x);
 
   60      static std::string toString(
const unsigned int& x);
 
   64      static double pi() {
return M_PI;}
 
   66      static double pi() {
return 3.14159265358979323846;}
 
   70      static std::string getParallelExtension(
 
   76      static double chopVal_;
 
 
Smart reference counting pointer class for automatic garbage collection.
 
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 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,...