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

Copy one buffer item to another. More...

#include <workflow.hpp>

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

Public Member Functions

 copy_item (graph::copy_nodes< T, SAFE_MATH > maps)
 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)> kernel
 Kernel function.
 
graph::copy_nodes< T, SAFE_MATH > maps
 Input nodes.
 

Detailed Description

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

Copy one buffer item to another.

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

Constructor & Destructor Documentation

◆ copy_item()

template<jit::float_scalar T, bool SAFE_MATH = false>
workflow::copy_item< T, SAFE_MATH >::copy_item ( graph::copy_nodes< T, SAFE_MATH >  maps)
inline

Construct a workflow item.

Parameters
[in]mapsInput variables to copy.

Member Function Documentation

◆ create_kernel_call()

template<jit::float_scalar T, bool SAFE_MATH = false>
virtual void workflow::copy_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::copy_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: