Ginkgo  Generated from pipelines/224724463 branch based on develop. Ginkgo version 1.3.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 > Struct 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>

Public Types

using factory = Factory
 

Public Member Functions

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>
struct 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 struct was generated from the following file: