Ginkgo: gko::enable_parameters_type< ConcreteParametersType, Factory > Class Template Reference

| Ginkgo Generated from branch based on main. Ginkgo version 1.11.0 A numerical linear algebra library targeting many-core architectures

Loading...
Searching...
No Matches
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.

## 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

  ConcreteParametersType | the concrete parameters type which is being implemented [CRTP parameter]
  Factory | the 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

  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:

- ginkgo/core/base/abstract_factory.hpp