|
Calculator
Extensible stack-based calculator primarily in library form
|
Drivable class to run the calculator with a single set of commands. More...
#include <Executive.h>
Public Member Functions | |
| FixedOperatorExecutive (StackOperatorFactory &theFactory, Stack &theStack) | |
| FixedOperatorExecutive (const Executive &)=delete | |
| FixedOperatorExecutive (Executive &&)=delete | |
| FixedOperatorExecutive & | operator= (const Executive &)=delete |
| FixedOperatorExecutive & | operator= (Executive &&)=delete |
| void | doHelp (std::ostream &output) const |
| void | process (std::istream &input, std::ostream &output) |
| Process commands from input and pushing generated info to output. More... | |
| Result | process (const std::string &input) |
| Process commands from input and pushing generated info to output. More... | |
Drivable class to run the calculator with a single set of commands.
Definition at line 89 of file Executive.h.
| Calculator::FixedOperatorExecutive::FixedOperatorExecutive | ( | StackOperatorFactory & | theFactory, |
| Stack & | theStack | ||
| ) |
Definition at line 103 of file Executive.cpp.
|
delete |
|
delete |
| void Calculator::FixedOperatorExecutive::doHelp | ( | std::ostream & | output | ) | const |
Definition at line 108 of file Executive.cpp.
|
delete |
|
delete |
| Result Calculator::FixedOperatorExecutive::process | ( | const std::string & | input | ) |
Process commands from input and pushing generated info to output.
| input | to create one operator and execute from |
Definition at line 116 of file Executive.cpp.
| void Calculator::FixedOperatorExecutive::process | ( | std::istream & | input, |
| std::ostream & | output | ||
| ) |
Process commands from input and pushing generated info to output.
| input | to read commands from |
| output | to write status to |
Definition at line 112 of file Executive.cpp.