sisi4s
Loading...
Searching...
No Matches
sisi4s::AlgorithmRegistrar< AlgorithmType > Class Template Reference

Class to be statically instantiated by an algorithm to register it in the AlgorithmFactory. Registered algorithms can be instantiated from the sisi4s control language. More...

#include <Algorithm.hpp>

Inherits sisi4s::AlgorithmFactory.

Collaboration diagram for sisi4s::AlgorithmRegistrar< AlgorithmType >:

Public Member Functions

 AlgorithmRegistrar (std::string const &name)
 Constructs the registrating instance. The algorithm type must be given as template argument, the algorithm name as method argument.
 

Additional Inherited Members

- Protected Types inherited from sisi4s::AlgorithmFactory
using AlgorithmMap = std::map< std::string, std::function< Algorithm *(std::vector< Argument > const &)> >
 
- Static Protected Member Functions inherited from sisi4s::AlgorithmFactory
static AlgorithmMapgetAlgorithmMap ()
 
static Algorithmcreate (std::string const &name, std::vector< Argument > const &arguments)
 Creates an algorithm object of the algorithm type specified by the given name. The given arguments are passed to the algorithm constructor. The instantiated algorithm must be registered using the AlgorithmRegistrar class.
 
static std::vector< std::string > getAlgorithmNames ()
 
- Static Protected Attributes inherited from sisi4s::AlgorithmFactory
static AlgorithmMapalgorithmMap
 

Detailed Description

template<typename AlgorithmType>
class sisi4s::AlgorithmRegistrar< AlgorithmType >

Class to be statically instantiated by an algorithm to register it in the AlgorithmFactory. Registered algorithms can be instantiated from the sisi4s control language.

Constructor & Destructor Documentation

◆ AlgorithmRegistrar()

template<typename AlgorithmType >
sisi4s::AlgorithmRegistrar< AlgorithmType >::AlgorithmRegistrar ( std::string const &  name)
inline

Constructs the registrating instance. The algorithm type must be given as template argument, the algorithm name as method argument.

Here is the call graph for this function:

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