14 #ifndef STACK_MANIPULATOR_H
15 #define STACK_MANIPULATOR_H
17 #ifndef STACK_OPERATOR_H
83 virtual std::string
getHelp()
const;
Collection of Result information for an operation.
Stack of values to process from.
Create StackManipulator from a string.
virtual ~StackManipulatorCreator()
virtual StackOperator::Ptr create(const std::string &str)
virtual std::string getHelp() const
Stack Modifier for Stack Operations.
static StackManipulator::Ptr create(Operation operation)
Create to perform operation.
virtual Result operator()(Stack &stack, StackOperator::Ptr ofThis)
Execute this operator on stack.
Operation
Operations supported.
@ SWAP
Swap the top two elements.
@ POP_ALL
Clear the entire stack.
@ DUP
Duplicate the top value.
@ RESET
Clear the entire stack and set of variables.
@ POP
Pop the top value off and forget it.
Factory creators of StackOperator::Ptrs.
Base class for all operators.
std::shared_ptr< StackOperator > Ptr
Container of Calculator resources.