https://mooseframework.inl.gov
Public Member Functions | Private Attributes | List of all members
Moose::Kokkos::DispatcherRegistryEntryBase Class Referenceabstract

Base class for dispatcher registry entry. More...

#include <KokkosDispatcher.h>

Inheritance diagram for Moose::Kokkos::DispatcherRegistryEntryBase:
[legend]

Public Member Functions

virtual ~DispatcherRegistryEntryBase ()
 
virtual std::unique_ptr< DispatcherBasebuild (const void *object) const =0
 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...
 

Private Attributes

bool _has_user_method = false
 Flag whether the user has overriden the hook method associated with this operation. More...
 

Detailed Description

Base class for dispatcher registry entry.

Used for type erasure so that the registry can hold dispatchers for different functor types in a single container.

Definition at line 98 of file KokkosDispatcher.h.

Constructor & Destructor Documentation

◆ ~DispatcherRegistryEntryBase()

virtual Moose::Kokkos::DispatcherRegistryEntryBase::~DispatcherRegistryEntryBase ( )
inlinevirtual

Definition at line 101 of file KokkosDispatcher.h.

101 {}

Member Function Documentation

◆ build()

virtual std::unique_ptr<DispatcherBase> Moose::Kokkos::DispatcherRegistryEntryBase::build ( const void object) const
pure virtual

Build a dispatcher for this operation and functor.

Parameters
objectThe pointer to the functor

Implemented in Moose::Kokkos::DispatcherRegistryEntry< Operation, Object >.

◆ hasUserMethod() [1/2]

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

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 112 of file KokkosDispatcher.h.

112 { _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
inline

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 117 of file KokkosDispatcher.h.

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

Member Data Documentation

◆ _has_user_method

bool Moose::Kokkos::DispatcherRegistryEntryBase::_has_user_method = false
private

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

Definition at line 123 of file KokkosDispatcher.h.

Referenced by hasUserMethod().


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