35 namespace substitutionModels
50 Foam::substitutionModels::userValue::userValue
61 for (
const auto&
e : entriesDict)
63 entries_.insert(
cleanKey(
e.keyword()),
string(
e.stream()));
75 return entries_.found(keyName);
85 if (!valid(
key))
return false;
95 return entries_.sortedToc();
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Base class for substitution models.
virtual wordList keys() const
Return a word list of the keys.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar e
Elementary charge.
A class for handling words, derived from Foam::string.
addToRunTimeSelectionTable(substitutionModel, dictionaryValue, dictionary)
string & replaceAll(const std::string &s1, const std::string &s2, size_type pos=0)
Replace all occurrences of sub-string s1 with s2, beginning at pos in the string. ...
virtual bool apply(const word &key, string &buffer) const
Apply substitutions to this string buffer.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
defineTypeNameAndDebug(dictionaryValue, 0)
static word cleanKey(const string &str)
Clean the key text.
virtual bool valid(const word &keyName) const
Return true of model applies to this keyName.