Graph Framework
Loading...
Searching...
No Matches
workflow::callback_item< T, SAFE_MATH > Class Template Reference

Callback item. More...

#include <workflow.hpp>

Inheritance diagram for workflow::callback_item< T, SAFE_MATH >:
workflow::item< T, SAFE_MATH >

Public Member Functions

 callback_item (std::function< void(void)> callback)
 Construct a workflow item.
 
virtual void create_kernel_call (jit::context< T, SAFE_MATH > &context)
 Set the kernel function.
 
virtual void run ()
 Run the work item.
 

Protected Attributes

std::function< void(void)> callback
 Callback function.
 
std::function< void(void)> kernel
 Kernel function.
 

Detailed Description

template<jit::float_scalar T, bool SAFE_MATH = false>
class workflow::callback_item< T, SAFE_MATH >

Callback item.

Template Parameters
TBase type of the calculation.
SAFE_MATHUse Safe Math operations.

Constructor & Destructor Documentation

◆ callback_item()

template<jit::float_scalar T, bool SAFE_MATH = false>
workflow::callback_item< T, SAFE_MATH >::callback_item ( std::function< void(void)>  callback)
inline

Construct a workflow item.

Parameters
[in]callbackLambda function to run.

Member Function Documentation

◆ create_kernel_call()

template<jit::float_scalar T, bool SAFE_MATH = false>
virtual void workflow::callback_item< T, SAFE_MATH >::create_kernel_call ( jit::context< T, SAFE_MATH > &  context)
inlinevirtual

Set the kernel function.

Parameters
[in,out]contextJit context.

Implements workflow::item< T, SAFE_MATH >.

◆ run()

template<jit::float_scalar T, bool SAFE_MATH = false>
virtual void workflow::callback_item< T, SAFE_MATH >::run ( )
inlinevirtual

Run the work item.

Implements workflow::item< T, SAFE_MATH >.


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