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

Creates Variables from strings that convert to variables. More...

#include <Variable.h>

Inheritance diagram for Calculator::VariableCreator:
Collaboration diagram for Calculator::VariableCreator:

Public Member Functions

virtual ~VariableCreator ()
 
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 Variables from strings that convert to variables.

Definition at line 72 of file Variable.h.

Constructor & Destructor Documentation

◆ ~VariableCreator()

Calculator::VariableCreator::~VariableCreator ( )
virtual

Definition at line 44 of file Variable.cpp.

Member Function Documentation

◆ create()

StackOperator::Ptr Calculator::VariableCreator::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 50 of file Variable.cpp.

◆ getHelp()

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

Implements Calculator::StackOperatorCreator.

Definition at line 46 of file Variable.cpp.


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