Functions | |
virtual void | Calculator::saveNumber () |
virtual void | Calculator::addNumber () |
virtual void | Calculator::clear () |
virtual void | Calculator::saveOp () |
virtual void | Calculator::showResult () |
|
Add a number to the current number, for example, if there is '12' on a screen and '3' button pressed, there should be '123' on a screen Implements CalculatorFSM. Definition at line 158 of file calculator.cpp. References Calculator::enteredOperand, Calculator::operands, and Calculator::showStackTop(). |
|
Just clear :) Implements CalculatorFSM. Definition at line 164 of file calculator.cpp. References Calculator::operands, Calculator::operations, and Calculator::showStackTop(). |
|
A number have been entered, save it and proceed to the next one Implements CalculatorFSM. Definition at line 153 of file calculator.cpp. References Calculator::operands. |
|
Save operation to our stack. This output follows press '+', '-', ... Implements CalculatorFSM. Definition at line 172 of file calculator.cpp. References Calculator::enteredOperation, and Calculator::operations. |
|
Calculate and display result of operation Implements CalculatorFSM. Definition at line 178 of file calculator.cpp. References Calculator::operations, and Calculator::showStackTop(). |