https://mooseframework.inl.gov
Public Member Functions | Protected Attributes | Friends | List of all members
Moose::Kokkos::FunctorWrapperDevice< Object > Class Template Reference

Device functor wrapper class that provides polymorphic interfaces for a functor. More...

#include <KokkosFunctorWrapper.h>

Inheritance diagram for Moose::Kokkos::FunctorWrapperDevice< Object >:
[legend]

Public Member Functions

KOKKOS_FUNCTION FunctorWrapperDevice ()
 Constructor. More...
 

Protected Attributes

Object * _functor = nullptr
 Pointer to the functor on device. More...
 

Friends

class FunctorWrapperHost< Object >
 

Detailed Description

template<typename Object>
class Moose::Kokkos::FunctorWrapperDevice< Object >

Device functor wrapper class that provides polymorphic interfaces for a functor.

The functor itself is a static object and does not have any virtual method. Instead, the device wrapper defines the virtual shims and forwards the calls to the static methods of the stored functor.

Template Parameters
ObjectThe functor class type

Definition at line 45 of file KokkosFunctorWrapper.h.

Constructor & Destructor Documentation

◆ FunctorWrapperDevice()

template<typename Object>
KOKKOS_FUNCTION Moose::Kokkos::FunctorWrapperDevice< Object >::FunctorWrapperDevice ( )
inline

Constructor.

Definition at line 53 of file KokkosFunctorWrapper.h.

53 {}

Friends And Related Function Documentation

◆ FunctorWrapperHost< Object >

template<typename Object>
friend class FunctorWrapperHost< Object >
friend

Definition at line 47 of file KokkosFunctorWrapper.h.

Member Data Documentation

◆ _functor

template<typename Object>
Object* Moose::Kokkos::FunctorWrapperDevice< Object >::_functor = nullptr
protected

Pointer to the functor on device.

Definition at line 59 of file KokkosFunctorWrapper.h.


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