VisionCpp  0.0.1
Static Public Member Functions | List of all members
visioncpp::internal::BufferUpdate< LeafType, Rows, Cols, ElemType, Scalar, VisionMem > Struct Template Reference

This is used to update the Vision Memory with new value update sycl buffer at the moment we use ptr.reset() because it was faster than getting the host pointer and updating it in the host side. More...

#include <memory.hpp>

Collaboration diagram for visioncpp::internal::BufferUpdate< LeafType, Rows, Cols, ElemType, Scalar, VisionMem >:

Static Public Member Functions

static void buffer_update (std::shared_ptr< VisionMem > &ptr, Scalar *dt)
 function buffer_update More...
 

Detailed Description

template<size_t LeafType, size_t Rows, size_t Cols, typename ElemType, typename Scalar, typename VisionMem>
struct visioncpp::internal::BufferUpdate< LeafType, Rows, Cols, ElemType, Scalar, VisionMem >

This is used to update the Vision Memory with new value update sycl buffer at the moment we use ptr.reset() because it was faster than getting the host pointer and updating it in the host side.

template parameters:

Template Parameters
LeafType: is the memory type
Rowsis the row size of the buffer
Colsis the column size of the buffer
ElemTypeis the type of element in the buffer
Scalaris the type of each channel of the element
VisionMemis the created SyclMem

Definition at line 486 of file memory.hpp.

Member Function Documentation

◆ buffer_update()

template<size_t LeafType, size_t Rows, size_t Cols, typename ElemType , typename Scalar , typename VisionMem >
static void visioncpp::internal::BufferUpdate< LeafType, Rows, Cols, ElemType, Scalar, VisionMem >::buffer_update ( std::shared_ptr< VisionMem > &  ptr,
Scalar *  dt 
)
inlinestatic

function buffer_update

this function is used to update the sycl buffer with a new value parameters:

Parameters
ptr: is the shared_ptr containing the SyclMem
dtis the pointer containing the new value for the buffer
Returns
void

Definition at line 493 of file memory.hpp.


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