https://mooseframework.inl.gov
Public Member Functions | List of all members
Moose::Kokkos::ReducerRegistryEntry< Operation, Object > Class Template Reference

#include <KokkosDispatcher.h>

Inheritance diagram for Moose::Kokkos::ReducerRegistryEntry< Operation, Object >:
[legend]

Public Member Functions

std::unique_ptr< DispatcherBasebuild (const void *object) const override final
 Build a dispatcher for this operation and functor. More...
 
void hasUserMethod (bool flag)
 Set whether the user has overriden the hook method associated with this operation. More...
 
bool hasUserMethod () const
 Get whether the user has overriden the hook method associated with this operation. More...
 

Detailed Description

template<typename Operation, typename Object>
class Moose::Kokkos::ReducerRegistryEntry< Operation, Object >

Definition at line 237 of file KokkosDispatcher.h.

Member Function Documentation

◆ build()

template<typename Operation , typename Object >
std::unique_ptr<DispatcherBase> Moose::Kokkos::ReducerRegistryEntry< Operation, Object >::build ( const void object) const
inlinefinaloverridevirtual

Build a dispatcher for this operation and functor.

Parameters
objectThe pointer to the functor

Implements Moose::Kokkos::DispatcherRegistryEntryBase.

Definition at line 240 of file KokkosDispatcher.h.

241  {
242  return std::make_unique<Reducer<Operation, Object>>(object);
243  }

◆ hasUserMethod() [1/2]

void Moose::Kokkos::DispatcherRegistryEntryBase::hasUserMethod ( bool  flag)
inlineinherited

Set whether the user has overriden the hook method associated with this operation.

Parameters
flagWhether the user has overriden the hook method

Definition at line 202 of file KokkosDispatcher.h.

202 { _has_user_method = flag; }
bool _has_user_method
Flag whether the user has overriden the hook method associated with this operation.

◆ hasUserMethod() [2/2]

bool Moose::Kokkos::DispatcherRegistryEntryBase::hasUserMethod ( ) const
inlineinherited

Get whether the user has overriden the hook method associated with this operation.

Returns
Whether the user has overriden the hook method

Definition at line 207 of file KokkosDispatcher.h.

207 { return _has_user_method; }
bool _has_user_method
Flag whether the user has overriden the hook method associated with this operation.

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