10 #ifndef MUELU_PARAMETERLISTUTILS_HPP
11 #define MUELU_PARAMETERLISTUTILS_HPP
38 void replaceAll(std::string& str,
const std::string& from,
const std::string& to);
41 template <
typename Type>
49 template <
typename Type>
54 if (mlParams.
isParameter(paramName)) varName = mlParams.
get<Type>(paramName);
56 std::stringstream placeholder;
57 placeholder <<
"$" << paramName <<
"$";
59 return MueLu::replacePlaceholder<Type>(str, placeholder.str(), varName);
64 #endif // MUELU_PARAMETERLISTUTILS_HPP
void MergeParameterList(const Teuchos::ParameterList &source, Teuchos::ParameterList &dest, bool overWrite)
: merge two parameter lists
bool replacePlaceholder(std::string &str, const std::string &placeholder, Type data)
templated version to replace placeholder by data in "str"
T & get(const std::string &name, T def_value)
const Teuchos::ParameterList & GetMLSubList(const Teuchos::ParameterList ¶mList, const std::string &type, int levelID)
bool isParameter(const std::string &name) const
void CreateSublists(const ParameterList &List, ParameterList &newList)
Teuchos::RCP< Teuchos::ParameterList > ExtractSetOfParameters(const Teuchos::ParameterList ¶mList, const std::string &str)
bool actionInterpretParameter(Teuchos::ParameterList &mlParams, const std::string ¶mName, std::string &str)
void replaceAll(std::string &str, const std::string &from, const std::string &to)