14 #ifndef BINARY_MATH_OPERATOR_H
15 #define BINARY_MATH_OPERATOR_H
17 #ifndef STACK_OPERATOR_H
32 typedef std::shared_ptr<BinaryMathOperator>
Ptr;
86 virtual std::string
getHelp()
const;
Create BinaryMathOperation from a string.
virtual std::string getHelp() const
virtual StackOperator::Ptr create(const std::string &str)
virtual ~BinaryMathCreator()
Stack Modifier for Binary Math Operations.
BinaryMathOperator & operator=(BinaryMathOperator &&)=delete
BinaryMathOperator(const BinaryMathOperator &)=delete
Operation
Operations supported.
@ MULTIPLY
Multiply the two values.
@ DIVIDE
Divide the two values.
@ SUBTRACT
Subtract the two values.
@ EXPONENT
Raise top to the exponent second.
BinaryMathOperator(Operation op)
Create to perform operation.
std::shared_ptr< BinaryMathOperator > Ptr
BinaryMathOperator & operator=(const BinaryMathOperator &)=delete
BinaryMathOperator(BinaryMathOperator &&)=delete
static BinaryMathOperator::Ptr create(Operation op)
Create to perform operation.
virtual Result operator()(Stack &stack, StackOperator::Ptr ofThis)
Execute this operator on stack.
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
Container of Calculator resources.