|
| | deferred_factory_parameter ()=default |
| |
| | deferred_factory_parameter (std::nullptr_t) |
| |
| template<typename ConcreteFactoryType , std::enable_if_t< detail::is_pointer_convertible< ConcreteFactoryType, FactoryType >::value > * = nullptr> |
| | deferred_factory_parameter (std::shared_ptr< ConcreteFactoryType > factory) |
| |
| template<typename ConcreteFactoryType , typename Deleter , std::enable_if_t< detail::is_pointer_convertible< ConcreteFactoryType, FactoryType >::value > * = nullptr> |
| | deferred_factory_parameter (std::unique_ptr< ConcreteFactoryType, Deleter > factory) |
| |
| template<typename ParametersType , typename U = decltype(std::declval<ParametersType>().on( std::shared_ptr<const Executor>{})), std::enable_if_t< detail::is_pointer_convertible< typename U::element_type, FactoryType >::value > * = nullptr> |
| | deferred_factory_parameter (ParametersType parameters) |
| |
| std::shared_ptr< FactoryType > | on (std::shared_ptr< const Executor > exec) const |
| |
| bool | is_empty () const |
| |
template<typename FactoryType>
class gko::deferred_factory_parameter< FactoryType >
Represents a factory parameter of factory type that can either initialized by a pre-existing factory or by passing in a factory_parameters object whose .on(exec) will be called to instantiate a factory.
- Template Parameters
-
| FactoryType | the type of factory that can be instantiated from this object. |
template<typename FactoryType >
template<typename ConcreteFactoryType , typename Deleter , std::enable_if_t< detail::is_pointer_convertible< ConcreteFactoryType, FactoryType >::value > * = nullptr>
Creates a deferred factory parameter by taking ownership of a preexisting factory with unique ownership.
template<typename FactoryType >
template<typename ParametersType , typename U = decltype(std::declval<ParametersType>().on( std::shared_ptr<const Executor>{})), std::enable_if_t< detail::is_pointer_convertible< typename U::element_type, FactoryType >::value > * = nullptr>
Creates a deferred factory parameter object from a factory_parameters-like object. To instantiate the actual factory, the parameter's .on(exec) function will be called.