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