|
Calculator
Extensible stack-based calculator primarily in library form
|
Stack of values to process from. More...
#include <Stack.h>
Public Types | |
| typedef unsigned int | Count |
| Count of StackItems. More... | |
Public Member Functions | |
| Stack () | |
| Stack (const Stack &rhs)=delete | |
| Stack (Stack &&rhs)=delete | |
| Stack & | operator= (const Stack &rhs)=delete |
| Stack & | operator= (Stack &&rhs)=delete |
| Count | getDepth () const |
| VariableSet & | getVariables () |
| void | reset () |
| Reset the stack including pop all variables and reset the variables. More... | |
| void | popAll () |
| Pop all items from the stack. More... | |
| StackIterator | begin () |
| StackIterator | end () |
| void | popAfter (StackIterator &iter) |
| Pop all items after iter on the Stack. More... | |
| void | push (StackItemPtr item) |
| Push item onto the stack. More... | |
| std::string | toString () const |
| Create string representation of the current contents of the Stack. More... | |
Stack of values to process from.
Contains StackItem::Ptr objects.
| typedef unsigned int Calculator::Stack::Count |
|
delete |
|
delete |
| StackIterator Calculator::Stack::begin | ( | ) |
| StackIterator Calculator::Stack::end | ( | ) |
| Stack::Count Calculator::Stack::getDepth | ( | ) | const |
| VariableSet & Calculator::Stack::getVariables | ( | ) |
| void Calculator::Stack::popAfter | ( | StackIterator & | iter | ) |
| void Calculator::Stack::popAll | ( | ) |
| void Calculator::Stack::push | ( | StackItemPtr | item | ) |
| void Calculator::Stack::reset | ( | ) |
| std::string Calculator::Stack::toString | ( | ) | const |