35 const dictionary& coeffs
38 foName_ = coeffs.get<word>(
"functionObject");
39 foResultName_ = coeffs.get<
word>(
"functionObjectResult");
40 haveDefaultValue_ = coeffs.readIfPresent(
"defaultValue", defaultValue_);
47 const word& entryName,
56 haveDefaultValue_(false)
70 foResultName_(rhs.foResultName_),
71 defaultValue_(rhs.defaultValue_),
72 haveDefaultValue_(rhs.haveDefaultValue_)
84 os.writeEntry(
"functionObject", foName_);
85 os.writeEntry(
"functionObjectResult", foResultName_);
87 if (haveDefaultValue_)
89 os.writeEntry(
"defaultValue", defaultValue_);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
FunctionObjectValue(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
const bool writeData(pdfDictionary.get< bool >("writeData"))
Returns a value retrieved from a function object result.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual void writeData(Ostream &os) const
Write in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Registry of regIOobjects.
static constexpr const zero Zero
Global zero (0)