Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
Namespaces | Functions
Tempus_String_Utilities.hpp File Reference
#include <vector>
#include <string>
#include "Teuchos_RCP.hpp"
#include "Teuchos_ParameterList.hpp"
#include "Tempus_config.hpp"

Go to the source code of this file.

Namespaces

namespace  Tempus
 

Functions

void Tempus::trim (std::string &str)
 Removes whitespace at beginning and end of string.
 
void Tempus::StringTokenizer (std::vector< std::string > &tokens, const std::string &str, const std::string delimiter=",", bool trim=false)
 Tokenize a string, put tokens in a vector.
 
void Tempus::TokensToDoubles (std::vector< double > &values, const std::vector< std::string > &tokens)
 Turn a vector of tokens into a vector of doubles.
 
void Tempus::TokensToInts (std::vector< int > &values, const std::vector< std::string > &tokens)
 Turn a vector of tokens into a vector of ints.
 
template<typename ScalarT >
ScalarT Tempus::getScalarParameter (const std::string &field, const Teuchos::ParameterList &plist)