Go to the documentation of this file.
43 #ifndef expressions_exprResultGlobals_H
44 #define expressions_exprResultGlobals_H
111 Table& getOrCreateScope(
const word& scope)
113 return variables_(scope);
155 const bool overwrite =
true
164 const bool overwrite =
true
176 const word& scope =
"",
177 const bool overwrite =
true
virtual bool writeData(Ostream &os) const
Write variables.
A class for handling words, derived from Foam::string.
const exprResult & get(const word &name, const wordUList &scopes) const
Return a global variable, if it exists, or a exprResult::null.
Table & getNamespace(const word &name)
Get an existing table for the namespace.
Registry of regIOobjects.
A polymorphic field/result from evaluating an expression.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A globally available registry of expression results. These are currently registered on Time (may chan...
virtual bool readData(Istream &os)
Read variables.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool removeValue(const word &name, const word &scope)
Remove named result from specified scope.
virtual ~exprResultGlobals()=default
Destructor.
OBJstream os(runTime.globalPath()/outputName)
Table()=default
Default construct.
A HashTable similar to std::unordered_map.
static bool Delete(const objectRegistry &obr)
Static destructor for singleton.
const word & name() const noexcept
Return name.
exprResult & addValue(const word &name, const word &scope, const exprResult &value, const bool overwrite=true)
Add named result to specified scope.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers.
TypeNameNoDebug("exprResultGlobals")
Runtime type information.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static exprResultGlobals & New(const objectRegistry &obr)
Static constructor for singleton.