Inheritance diagram for Calculator::OpDiv:
Definition at line 73 of file calculator.h.
Public Member Functions | |
OpDiv (Calculator *calc) | |
virtual void | operator() () |
Pure virtual operator - it's an operation itself. |
|
Pure virtual operator - it's an operation itself. The operation code is pretty simple. Just pop up needed number of arguments using Calculator::popOperand(), perform calculation and put result back via Calculator::pushOperand( int ). Implements Calculator::Operation. Definition at line 206 of file calculator.cpp. References Calculator::popOperand(), and Calculator::pushOperand(). |