14 #ifndef VARIABLE_SET_H
15 #define VARIABLE_SET_H
20 class VariableSetPimpl;
47 std::shared_ptr<StackItem>
get(
const std::string& name)
const;
54 void set(
const std::string& name, std::shared_ptr<StackItem> value);
58 std::shared_ptr<VariableSetPimpl> pimpl;
All variables belonging to a Stack.
VariableSet & operator=(VariableSet &&)=delete
VariableSet(VariableSet &&)=delete
void clear()
Clear all set variables.
VariableSet()
Construct with an empty variable set.
void set(const std::string &name, std::shared_ptr< StackItem > value)
Set the value of name, overriding existing values.
VariableSet(const VariableSet &)=delete
std::shared_ptr< StackItem > get(const std::string &name) const
Get the value of name, if any.
VariableSet & operator=(const VariableSet &)=delete
Container of Calculator resources.