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

Creates Numbers from strings that convert to numbers. More...

#include <Number.h>

Inheritance diagram for Calculator::NumberCreator:
Collaboration diagram for Calculator::NumberCreator:

Public Member Functions

virtual ~NumberCreator ()
 
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

Creates Numbers from strings that convert to numbers.

Definition at line 77 of file Number.h.

Constructor & Destructor Documentation

◆ ~NumberCreator()

Calculator::NumberCreator::~NumberCreator ( )
virtual

Definition at line 54 of file Number.cpp.

Member Function Documentation

◆ create()

StackOperator::Ptr Calculator::NumberCreator::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 60 of file Number.cpp.

◆ getHelp()

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

Implements Calculator::StackOperatorCreator.

Definition at line 56 of file Number.cpp.


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