Class that stores the information of a dispatcher and builds it. More...
#include <KokkosDispatcher.h>
Public Member Functions | |
std::unique_ptr< DispatcherBase > | build (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... | |
Class that stores the information of a dispatcher and builds it.
This shell class is the entry of the dispatcher registry instead of the dispatcher itself. The reason this class does not dispatch the functor directly is to let the dispatcher hold the reference of the functor so that the functor does not need to be copied twice at each dispatch. Namely, dispatchers are to be built and held by the functors, not the registry.
Operation | The function tag of operator() to be dispatched |
Object | The functor class type |
Definition at line 136 of file KokkosDispatcher.h.
|
inlinefinaloverridevirtual |
Build a dispatcher for this operation and functor.
object | The pointer to the functor |
Implements Moose::Kokkos::DispatcherRegistryEntryBase.
Definition at line 139 of file KokkosDispatcher.h.
|
inlineinherited |
Set whether the user has overriden the hook method associated with this operation.
flag | Whether the user has overriden the hook method |
Definition at line 112 of file KokkosDispatcher.h.
|
inlineinherited |
Get whether the user has overriden the hook method associated with this operation.
Definition at line 117 of file KokkosDispatcher.h.