Calculator
Extensible stack-based calculator primarily in library form
Calculator::BinaryMathCreator Class Reference

Create BinaryMathOperation from a string. More...

#include <BinaryMathOperator.h>

Inheritance diagram for Calculator::BinaryMathCreator:
Collaboration diagram for Calculator::BinaryMathCreator:

Public Member Functions

virtual ~BinaryMathCreator ()
 
virtual std::string getHelp () const
 
virtual StackOperator::Ptr create (const std::string &str)
 
- Public Member Functions inherited from Calculator::StackOperatorCreator
virtual ~StackOperatorCreator ()
 

Additional Inherited Members

- Public Types inherited from Calculator::StackOperatorCreator
typedef std::shared_ptr< StackOperatorCreatorPtr
 

Detailed Description

Create BinaryMathOperation from a string.

Definition at line 82 of file BinaryMathOperator.h.

Constructor & Destructor Documentation

◆ ~BinaryMathCreator()

Calculator::BinaryMathCreator::~BinaryMathCreator ( )
virtual

Definition at line 150 of file BinaryMathOperator.cpp.

Member Function Documentation

◆ create()

StackOperator::Ptr Calculator::BinaryMathCreator::create ( const std::string &  str)
virtual
Returns
StackOperator::Ptr of the StackOperator created from str, or it will be empty to indicate str cannot be used to create an item of this type.

Implements Calculator::StackOperatorCreator.

Definition at line 157 of file BinaryMathOperator.cpp.

◆ getHelp()

std::string Calculator::BinaryMathCreator::getHelp ( ) const
virtual
Returns
Help text for StackOperator::Ptrs this creates

Implements Calculator::StackOperatorCreator.

Definition at line 153 of file BinaryMathOperator.cpp.


The documentation for this class was generated from the following files: