Ginkgo  Generated from pipelines/150876808 branch based on develop. Ginkgo version 1.1.1
A numerical linear algebra library targeting many-core architectures
Public Member Functions | List of all members
gko::EnableAbstractPolymorphicObject< AbstractObject, PolymorphicBase > Class Template Reference

This mixin inherits from (a subclass of) PolymorphicObject and provides a base implementation of a new abstract object. More...

#include <ginkgo/core/base/polymorphic_object.hpp>

Collaboration diagram for gko::EnableAbstractPolymorphicObject< AbstractObject, PolymorphicBase >:
[legend]

Public Member Functions

std::unique_ptr< AbstractObject > create_default (std::shared_ptr< const Executor > exec) const
 
std::unique_ptr< AbstractObject > create_default () const
 
std::unique_ptr< AbstractObject > clone (std::shared_ptr< const Executor > exec) const
 
std::unique_ptr< AbstractObject > clone () const
 
AbstractObject * copy_from (const PolymorphicObject *other)
 
AbstractObject * copy_from (std::unique_ptr< PolymorphicObject > other)
 
AbstractObject * clear ()
 

Detailed Description

template<typename AbstractObject, typename PolymorphicBase = PolymorphicObject>
class gko::EnableAbstractPolymorphicObject< AbstractObject, PolymorphicBase >

This mixin inherits from (a subclass of) PolymorphicObject and provides a base implementation of a new abstract object.

It uses method hiding to update the parameter and return types from PolymorphicObject toAbstractObject` wherever it makes sense. As opposed to EnablePolymorphicObject, it does not implement PolymorphicObject's virtual methods.

Template Parameters
AbstractObjectthe abstract class which is being implemented [CRTP parameter]
PolymorphicBaseparent of AbstractObject in the polymorphic hierarchy, has to be a subclass of polymorphic object
See also
EnablePolymorphicObject for creating a concrete subclass of PolymorphicObject.

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