The enable_parameters_type mixin is used to create a base implementation of the factory parameters structure.
More...
#include <ginkgo/core/base/abstract_factory.hpp>
|
template<typename... Args> |
ConcreteParametersType & | with_loggers (Args &&... _value) |
| Provides the loggers to be added to the factory and its generated objects in a fluent interface.
|
|
std::unique_ptr< Factory > | on (std::shared_ptr< const Executor > exec) const |
| Creates a new factory on the specified executor.
|
|
template<typename ConcreteParametersType, typename Factory>
class gko::enable_parameters_type< ConcreteParametersType, Factory >
The enable_parameters_type mixin is used to create a base implementation of the factory parameters structure.
It provides only the on() method which can be used to instantiate the factory give the parameters stored in the structure.
- Template Parameters
-
ConcreteParametersType | the concrete parameters type which is being implemented [CRTP parameter] |
Factory | the concrete factory for which these parameters are being used |
◆ on()
template<typename ConcreteParametersType, typename Factory>
Creates a new factory on the specified executor.
- Parameters
-
exec | the executor where the factory will be created |
- Returns
- a new factory instance
The documentation for this class was generated from the following file: