AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
CreatorInterfaceName< BaseClass > Class Template Referenceabstract

Interface for creators with name. More...

#include <CreatorInterface.hpp>

Inherits CreatorInterface< BaseClass >.

Public Member Functions

std::unique_ptr< BaseClass > create () final
 Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass. More...
 
virtual std::unique_ptr< BaseClass > createWithString (std::string)=0
 Must be implemented by sub classes of CreatorInterfaceName. Creates a new instance of the sub class of BaseClass by passing a string to the constructor. More...
 
virtual std::unique_ptr< BaseClass > create ()=0
 Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass. More...
 

Detailed Description

template<class BaseClass>
class AMDiS::CreatorInterfaceName< BaseClass >

Interface for creators with name.

Member Function Documentation

◆ create()

std::unique_ptr< BaseClass > create ( )
inlinefinalvirtual

Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass.

Implements CreatorInterface< BaseClass >.

◆ createWithString()

virtual std::unique_ptr< BaseClass > createWithString ( std::string  )
pure virtual

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