14 #ifndef VARIABLE_MANIPULATOR_H
15 #define VARIABLE_MANIPULATOR_H
17 #ifndef STACK_OPERATOR_H
31 typedef std::shared_ptr<VariableManipulator>
Ptr;
75 virtual std::string
getHelp()
const;
Collection of Result information for an operation.
Stack of values to process from.
Factory creators of StackOperator::Ptrs.
Base class for all operators.
std::shared_ptr< StackOperator > Ptr
Create VariableManipulator from a string.
virtual ~VariableManipulatorCreator()
virtual StackOperator::Ptr create(const std::string &str)
virtual std::string getHelp() const
Variable Modifier for Variable Operations.
VariableManipulator & operator=(VariableManipulator &&)=delete
virtual Result operator()(Stack &stack, StackOperator::Ptr ofThis)
Execute this operator on stack.
VariableManipulator(const VariableManipulator &)=delete
VariableManipulator(Operation op)
Create to perform operation.
Operation
Operations supported.
@ READ
Replace the top variable with its value.
@ WRITE
Write the value in next-to-top to variable in top.
static VariableManipulator::Ptr create(Operation op)
Create to perform operation.
VariableManipulator(VariableManipulator &&)=delete
std::shared_ptr< VariableManipulator > Ptr
VariableManipulator & operator=(const VariableManipulator &)=delete
Container of Calculator resources.