43#ifndef Foam_expressions_exprResultGlobals_H
44#define Foam_expressions_exprResultGlobals_H
62class exprResultGlobals
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
constexpr HashPtrTable() noexcept=default
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(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
A namespace for expression-related classes/traits etc.
UList< word > wordUList
UList of word.
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.