Calculator
Extensible stack-based calculator primarily in library form
Calculator::StackOperatorCreator Class Referenceabstract

Factory creators of StackOperator::Ptrs. More...

#include <StackOperator.h>

Inheritance diagram for Calculator::StackOperatorCreator:

Public Types

typedef std::shared_ptr< StackOperatorCreatorPtr
 

Public Member Functions

virtual ~StackOperatorCreator ()
 
virtual std::string getHelp () const =0
 
virtual StackOperator::Ptr create (const std::string &str)=0
 

Detailed Description

Factory creators of StackOperator::Ptrs.

Definition at line 57 of file StackOperator.h.

Member Typedef Documentation

◆ Ptr

Definition at line 59 of file StackOperator.h.

Constructor & Destructor Documentation

◆ ~StackOperatorCreator()

virtual Calculator::StackOperatorCreator::~StackOperatorCreator ( )
inlinevirtual

Definition at line 61 of file StackOperator.h.

Member Function Documentation

◆ create()

virtual StackOperator::Ptr Calculator::StackOperatorCreator::create ( const std::string &  str)
pure 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.

Implemented in Calculator::VariableManipulatorCreator, Calculator::VariableCreator, Calculator::StackManipulatorCreator, Calculator::NumberCreator, and Calculator::BinaryMathCreator.

◆ getHelp()

virtual std::string Calculator::StackOperatorCreator::getHelp ( ) const
pure virtual

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