VisionCpp  0.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
visioncpp::internal::ConstMemory< T > Struct Template Reference

The definition can be found in ConstMemory. More...

#include <mem_const.hpp>

Collaboration diagram for visioncpp::internal::ConstMemory< T >:

Public Types

using value_type = T
 

Public Member Functions

 ConstMemory (T r)
 
template<typename T2 >
 ConstMemory (T r, T2 &x)
 
const value_typeoperator[] (cl::sycl::nd_item< 2 > itemID) const
 
const value_typeoperator[] (cl::sycl::nd_item< 1 > itemID) const
 
const value_typeoperator[] (cl::sycl::id< 2 > itemID) const
 
const value_typeoperator[] (int itemID) const
 
const value_typeoperator[] (size_t itemID) const
 
const ConstMemory< T > & get_pointer () const
 this function is used to mimic the getpointer function used by evaluator expression, in order to access a ConstMemory Node. More...
 

Public Attributes

const T r
 

Detailed Description

template<typename T>
struct visioncpp::internal::ConstMemory< T >

The definition can be found in ConstMemory.

represents a c++ standard layout for detecting constant variable on the device.

template parameters:

Template Parameters
Tthe type of the constant variable

Definition at line 38 of file mem_const.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using visioncpp::internal::ConstMemory< T >::value_type = T

Definition at line 43 of file mem_const.hpp.

Constructor & Destructor Documentation

◆ ConstMemory() [1/2]

template<typename T >
visioncpp::internal::ConstMemory< T >::ConstMemory ( r)
inline

Definition at line 39 of file mem_const.hpp.

◆ ConstMemory() [2/2]

template<typename T >
template<typename T2 >
visioncpp::internal::ConstMemory< T >::ConstMemory ( r,
T2 &  x 
)
inline

Definition at line 41 of file mem_const.hpp.

Member Function Documentation

◆ get_pointer()

template<typename T >
const ConstMemory<T>& visioncpp::internal::ConstMemory< T >::get_pointer ( ) const
inline

this function is used to mimic the getpointer function used by evaluator expression, in order to access a ConstMemory Node.

Returns
ConstMemory

Definition at line 53 of file mem_const.hpp.

◆ operator[]() [1/5]

template<typename T >
const value_type& visioncpp::internal::ConstMemory< T >::operator[] ( cl::sycl::id< 2 >  itemID) const
inline

Definition at line 47 of file mem_const.hpp.

References visioncpp::internal::ConstMemory< T >::r.

◆ operator[]() [2/5]

template<typename T >
const value_type& visioncpp::internal::ConstMemory< T >::operator[] ( cl::sycl::nd_item< 1 >  itemID) const
inline

Definition at line 46 of file mem_const.hpp.

References visioncpp::internal::ConstMemory< T >::r.

◆ operator[]() [3/5]

template<typename T >
const value_type& visioncpp::internal::ConstMemory< T >::operator[] ( cl::sycl::nd_item< 2 >  itemID) const
inline

Definition at line 45 of file mem_const.hpp.

References visioncpp::internal::ConstMemory< T >::r.

◆ operator[]() [4/5]

template<typename T >
const value_type& visioncpp::internal::ConstMemory< T >::operator[] ( int  itemID) const
inline

Definition at line 48 of file mem_const.hpp.

References visioncpp::internal::ConstMemory< T >::r.

◆ operator[]() [5/5]

template<typename T >
const value_type& visioncpp::internal::ConstMemory< T >::operator[] ( size_t  itemID) const
inline

Definition at line 49 of file mem_const.hpp.

References visioncpp::internal::ConstMemory< T >::r.

Member Data Documentation

◆ r

template<typename T >
const T visioncpp::internal::ConstMemory< T >::r

Definition at line 44 of file mem_const.hpp.

Referenced by visioncpp::internal::ConstMemory< T >::operator[]().


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