Ginkgo  Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
Public Types | Public Member Functions | List of all members
gko::enable_parameters_type< ConcreteParametersType, Factory > Class Template Reference

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>

Inheritance diagram for gko::enable_parameters_type< ConcreteParametersType, Factory >:
[legend]

Public Types

using factory = Factory
 

Public Member Functions

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. More...
 

Detailed Description

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
ConcreteParametersTypethe concrete parameters type which is being implemented [CRTP parameter]
Factorythe concrete factory for which these parameters are being used

Member Function Documentation

◆ on()

template<typename ConcreteParametersType, typename Factory>
std::unique_ptr<Factory> gko::enable_parameters_type< ConcreteParametersType, Factory >::on ( std::shared_ptr< const Executor exec) const
inline

Creates a new factory on the specified executor.

Parameters
execthe executor where the factory will be created
Returns
a new factory instance

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