DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > Class Template Reference

#include <sycl/accessor_image.hpp>

Inheritance diagram for sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >:
Collaboration diagram for sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >:

Public Types

using value_type = typename std::conditional< AccessMode==access_mode::read, const DataT, DataT >::type
 
using reference = value_type &
 
using const_reference = const DataT &
 

Public Member Functions

template<typename AllocatorT >
 unsampled_image_accessor (unsampled_image< Dimensions, AllocatorT > &ImageRef, handler &CommandGroupHandlerRef, const property_list &PropList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
 unsampled_image_accessor (const unsampled_image_accessor &Rhs)=default
 
 unsampled_image_accessor (unsampled_image_accessor &&Rhs)=default
 
unsampled_image_accessoroperator= (const unsampled_image_accessor &Rhs)=default
 
unsampled_image_accessoroperator= (unsampled_image_accessor &&Rhs)=default
 
 ~unsampled_image_accessor ()=default
 
bool operator== (const unsampled_image_accessor &Rhs) const
 
bool operator!= (const unsampled_image_accessor &Rhs) const
 
template<typename Property >
bool has_property () const noexcept
 
template<typename Property >
Property get_property () const
 
size_t size () const noexcept
 
template<typename CoordT , typename = std::enable_if_t<AccessMode == access_mode::read && detail::IsValidUnsampledCoord2020DataT< Dimensions, CoordT>::value>>
DataT read (const CoordT &Coords) const noexcept
 
template<typename CoordT , typename = std::enable_if_t<AccessMode == access_mode::write && detail::IsValidUnsampledCoord2020DataT< Dimensions, CoordT>::value>>
void write (const CoordT &Coords, const DataT &Color) const
 
- Public Member Functions inherited from sycl::_V1::detail::OwnerLessBase< unsampled_image_accessor< DataT, Dimensions, AccessMode, image_target::device > >
bool ext_oneapi_owner_before (const ext::oneapi::detail::weak_object_base< unsampled_image_accessor< DataT, Dimensions, AccessMode, image_target::device > > &Other) const noexcept
 Compares the object against a weak object using an owner-based implementation-defined ordering. More...
 
bool ext_oneapi_owner_before (const unsampled_image_accessor< DataT, Dimensions, AccessMode, image_target::device > &Other) const noexcept
 Compares the object against another object using an owner-based implementation-defined ordering. More...
 

Friends

template<class T >
detail::createSyclObjFromImpl (decltype(T::impl) ImplObj)
 

Detailed Description

template<typename DataT, int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
class sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >

Definition at line 775 of file accessor_image.hpp.

Member Typedef Documentation

◆ const_reference

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
using sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::const_reference = const DataT &

Definition at line 800 of file accessor_image.hpp.

◆ reference

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
using sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::reference = value_type &

Definition at line 799 of file accessor_image.hpp.

◆ value_type

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
using sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::value_type = typename std::conditional<AccessMode == access_mode::read, const DataT, DataT>::type

Definition at line 797 of file accessor_image.hpp.

Constructor & Destructor Documentation

◆ unsampled_image_accessor() [1/3]

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<typename AllocatorT >
sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::unsampled_image_accessor ( unsampled_image< Dimensions, AllocatorT > &  ImageRef,
handler CommandGroupHandlerRef,
const property_list PropList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 803 of file accessor_image.hpp.

◆ unsampled_image_accessor() [2/3]

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::unsampled_image_accessor ( const unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &  Rhs)
default

◆ unsampled_image_accessor() [3/3]

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::unsampled_image_accessor ( unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &&  Rhs)
default

◆ ~unsampled_image_accessor()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::~unsampled_image_accessor ( )
default

Member Function Documentation

◆ get_property()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<typename Property >
Property sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::get_property ( ) const
inline

Definition at line 871 of file accessor_image.hpp.

◆ has_property()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<typename Property >
bool sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::has_property ( ) const
inlinenoexcept

Definition at line 864 of file accessor_image.hpp.

◆ operator!=()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
bool sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::operator!= ( const unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &  Rhs) const
inline

Definition at line 859 of file accessor_image.hpp.

◆ operator=() [1/2]

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
unsampled_image_accessor& sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::operator= ( const unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &  Rhs)
default

◆ operator=() [2/2]

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
unsampled_image_accessor& sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::operator= ( unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &&  Rhs)
default

◆ operator==()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
bool sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::operator== ( const unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget > &  Rhs) const
inline

Definition at line 854 of file accessor_image.hpp.

◆ read()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<typename CoordT , typename = std::enable_if_t<AccessMode == access_mode::read && detail::IsValidUnsampledCoord2020DataT< Dimensions, CoordT>::value>>
DataT sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::read ( const CoordT &  Coords) const
inlinenoexcept

Definition at line 896 of file accessor_image.hpp.

◆ size()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
size_t sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::size ( ) const
inlinenoexcept

Definition at line 879 of file accessor_image.hpp.

◆ write()

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<typename CoordT , typename = std::enable_if_t<AccessMode == access_mode::write && detail::IsValidUnsampledCoord2020DataT< Dimensions, CoordT>::value>>
void sycl::_V1::unsampled_image_accessor< DataT, Dimensions, AccessMode, AccessTarget >::write ( const CoordT &  Coords,
const DataT &  Color 
) const
inline

Definition at line 914 of file accessor_image.hpp.

Friends And Related Function Documentation

◆ detail::createSyclObjFromImpl

template<typename DataT , int Dimensions, access_mode AccessMode, image_target AccessTarget = image_target::device>
template<class T >
T detail::createSyclObjFromImpl ( decltype(T::impl)  ImplObj)
friend

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