| Calculator
    Extensible stack-based calculator primarily in library form | 
All variables belonging to a Stack. More...
#include <VariableSet.h>
| Public Member Functions | |
| VariableSet () | |
| Construct with an empty variable set.  More... | |
| VariableSet (const VariableSet &)=delete | |
| VariableSet (VariableSet &&)=delete | |
| VariableSet & | operator= (const VariableSet &)=delete | 
| VariableSet & | operator= (VariableSet &&)=delete | 
| void | clear () | 
| Clear all set variables.  More... | |
| std::shared_ptr< StackItem > | get (const std::string &name) const | 
| Get the value of name, if any.  More... | |
| void | set (const std::string &name, std::shared_ptr< StackItem > value) | 
| Set the value of name, overriding existing values.  More... | |
All variables belonging to a Stack.
A variable without a value is acceptable until its value is requested; such a request is not allowed.
Definition at line 28 of file VariableSet.h.
| Calculator::VariableSet::VariableSet | ( | ) | 
Construct with an empty variable set.
Definition at line 31 of file VariableSet.cpp.
| 
 | delete | 
| 
 | delete | 
| void Calculator::VariableSet::clear | ( | ) | 
Clear all set variables.
Definition at line 36 of file VariableSet.cpp.
| std::shared_ptr< StackItem > Calculator::VariableSet::get | ( | const std::string & | name | ) | const | 
Get the value of name, if any.
| name | of the variable go get | 
Definition at line 40 of file VariableSet.cpp.
| 
 | delete | 
| 
 | delete | 
| void Calculator::VariableSet::set | ( | const std::string & | name, | 
| std::shared_ptr< StackItem > | value | ||
| ) | 
Set the value of name, overriding existing values.
| name | of the variable go set | 
| value | holding the value of the variable | 
Definition at line 49 of file VariableSet.cpp.