sisi4s
|
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.
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 AlgorithmMap * | getAlgorithmMap () |
static Algorithm * | create (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 AlgorithmMap * | algorithmMap |
Class to be statically instantiated by an algorithm to register it in the AlgorithmFactory. Registered algorithms can be instantiated from the sisi4s control language.
|
inline |
Constructs the registrating instance. The algorithm type must be given as template argument, the algorithm name as method argument.