47 #ifndef MUELU_PARAMETERLISTUTILS_HPP
48 #define MUELU_PARAMETERLISTUTILS_HPP
75 void replaceAll(std::string& str,
const std::string& from,
const std::string& to);
78 template<
typename Type>
86 template<
typename Type>
92 if (mlParams.
isParameter(paramName)) varName = mlParams.
get<Type>(paramName);
94 std::stringstream placeholder;
95 placeholder <<
"$" << paramName <<
"$";
97 return MueLu::replacePlaceholder<Type>(str, placeholder.str(), varName);
102 #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)