Teuchos - Trilinos Tools Package
Version of the Day
|
This class provides some basic std::string and floating-point utilities for Teuchos. More...
#include <Teuchos_Utils.hpp>
Static Public Member Functions | |
static double | chop (const double &x) |
Set a number to zero if it is less than getChopVal() . More... | |
static double | getChopVal () |
Get the chopping value, below which numbers are considered to be zero. More... | |
static void | setChopVal (double chopVal) |
Set the chopping value, below which numbers are considered to be zero. More... | |
static bool | isWhiteSpace (const char c) |
Determine if a char is whitespace or not. More... | |
static std::string | trimWhiteSpace (const std::string &str) |
Trim whitespace from beginning and end of std::string. More... | |
static std::string | toString (const double &x) |
Write a double as a std::string. More... | |
static std::string | toString (const int &x) |
Write an int as a std::string. More... | |
static std::string | toString (const long long &x) |
Write a long long as a std::string. More... | |
static std::string | toString (const unsigned int &x) |
Write an unsigned int as a std::string. More... | |
static double | pi () |
pi. More... | |
static std::string | getParallelExtension (int procRank=-1, int numProcs=-1) |
Get a parallel file name extention . More... | |
This class provides some basic std::string and floating-point utilities for Teuchos.
Definition at line 27 of file Teuchos_Utils.hpp.
|
static |
Set a number to zero if it is less than getChopVal()
.
Definition at line 17 of file Teuchos_Utils.cpp.
|
inlinestatic |
Get the chopping value, below which numbers are considered to be zero.
Definition at line 37 of file Teuchos_Utils.hpp.
|
inlinestatic |
Set the chopping value, below which numbers are considered to be zero.
Definition at line 41 of file Teuchos_Utils.hpp.
|
inlinestatic |
Determine if a char is whitespace or not.
Definition at line 44 of file Teuchos_Utils.hpp.
|
static |
Trim whitespace from beginning and end of std::string.
Definition at line 23 of file Teuchos_Utils.cpp.
|
static |
Write a double as a std::string.
Definition at line 72 of file Teuchos_Utils.cpp.
|
static |
Write an int as a std::string.
Definition at line 51 of file Teuchos_Utils.cpp.
|
static |
Write a long long as a std::string.
Definition at line 58 of file Teuchos_Utils.cpp.
|
static |
Write an unsigned int as a std::string.
Definition at line 65 of file Teuchos_Utils.cpp.
|
inlinestatic |
pi.
Definition at line 66 of file Teuchos_Utils.hpp.
|
static |
Get a parallel file name extention .
Definition at line 79 of file Teuchos_Utils.cpp.