sisi4s
Loading...
Searching...
No Matches
sisi4s::MixerRegistrar< F, MixerType > Class Template Reference

Class to be statically instantiated by a mixer to register it in the MixerFactory. Registered mixers can be instantiated from the sisi4s control language. More...

#include <Mixer.hpp>

Inheritance diagram for sisi4s::MixerRegistrar< F, MixerType >:
Collaboration diagram for sisi4s::MixerRegistrar< F, MixerType >:

Public Member Functions

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

Additional Inherited Members

- Static Protected Member Functions inherited from sisi4s::MixerFactory< F >
static std::map< std::string, std::function< std::shared_ptr< Mixer< F > >(Algorithm *algorithm)> > * getMixerMap ()
 
static std::shared_ptr< Mixer< F > > create (std::string const &name, Algorithm *algorithm)
 Creates a mixer object of the mixer type specified by the given name. The instantiated mixer must be registered using the MixerRegistrar class.
 
- Static Protected Attributes inherited from sisi4s::MixerFactory< F >
static std::map< std::string, std::function< std::shared_ptr< Mixer< F > >(Algorithm *)> > * mixerMap
 

Detailed Description

template<typename F, typename MixerType>
class sisi4s::MixerRegistrar< F, MixerType >

Class to be statically instantiated by a mixer to register it in the MixerFactory. Registered mixers can be instantiated from the sisi4s control language.

Constructor & Destructor Documentation

◆ MixerRegistrar()

template<typename F , typename MixerType >
sisi4s::MixerRegistrar< F, MixerType >::MixerRegistrar ( std::string const &  name)
inline

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

Here is the call graph for this function:

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