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

Create StackManipulator from a string. More...

#include <StackManipulator.h>

Inheritance diagram for Calculator::StackManipulatorCreator:
Collaboration diagram for Calculator::StackManipulatorCreator:

Public Member Functions

virtual ~StackManipulatorCreator ()
 
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 StackManipulator from a string.

Definition at line 79 of file StackManipulator.h.

Constructor & Destructor Documentation

◆ ~StackManipulatorCreator()

Calculator::StackManipulatorCreator::~StackManipulatorCreator ( )
virtual

Definition at line 93 of file StackManipulator.cpp.

Member Function Documentation

◆ create()

StackOperator::Ptr Calculator::StackManipulatorCreator::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 105 of file StackManipulator.cpp.

◆ getHelp()

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

Implements Calculator::StackOperatorCreator.

Definition at line 96 of file StackManipulator.cpp.


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