Go to the documentation of this file.
38 #ifndef expressions_exprResultGlobals_H
39 #define expressions_exprResultGlobals_H
102 Table& getOrCreateScope(
const word& scope)
104 return variables_(scope);
143 const bool overwrite =
true
152 const bool overwrite =
true
161 const bool overwrite =
true
173 const word& scope =
"",
174 const bool overwrite =
true
virtual bool writeData(Ostream &os) const
Write variables.
const word & name() const
Return name.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
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.
TypeName("exprResultGlobals")
Runtime type information.
virtual ~exprResultGlobals()=default
Destructor.
A HashTable similar to std::unordered_map.
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>.
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)
Get the singleton.