DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::weak_object< SYCLObjT > Class Template Reference

#include <sycl/buffer.hpp>

Public Types

using object_type = typename detail::weak_object_base< SYCLObjT >::object_type
 

Public Member Functions

constexpr weak_object () noexcept=default
 
 weak_object (const SYCLObjT &SYCLObj) noexcept
 
 weak_object (const weak_object &Other) noexcept=default
 
 weak_object (weak_object &&Other) noexcept=default
 
weak_objectoperator= (const SYCLObjT &SYCLObj) noexcept
 
weak_objectoperator= (const weak_object &Other) noexcept=default
 
weak_objectoperator= (weak_object &&Other) noexcept=default
 
std::optional< SYCLObjT > try_lock () const noexcept
 
SYCLObjT lock () const
 

Detailed Description

template<typename SYCLObjT>
class sycl::_V1::ext::oneapi::weak_object< SYCLObjT >

Definition at line 40 of file buffer.hpp.

Member Typedef Documentation

◆ object_type

template<typename SYCLObjT >
using sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::object_type = typename detail::weak_object_base<SYCLObjT>::object_type

Definition at line 47 of file weak_object.hpp.

Constructor & Destructor Documentation

◆ weak_object() [1/4]

template<typename SYCLObjT >
constexpr sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::weak_object ( )
constexprdefaultnoexcept

◆ weak_object() [2/4]

template<typename SYCLObjT >
sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::weak_object ( const SYCLObjT &  SYCLObj)
inlinenoexcept

Definition at line 50 of file weak_object.hpp.

◆ weak_object() [3/4]

template<typename SYCLObjT >
sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::weak_object ( const weak_object< SYCLObjT > &  Other)
defaultnoexcept

◆ weak_object() [4/4]

template<typename SYCLObjT >
sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::weak_object ( weak_object< SYCLObjT > &&  Other)
defaultnoexcept

Member Function Documentation

◆ lock()

template<typename SYCLObjT >
SYCLObjT sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::lock ( ) const
inline

Definition at line 71 of file weak_object.hpp.

◆ operator=() [1/3]

template<typename SYCLObjT >
weak_object& sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::operator= ( const SYCLObjT &  SYCLObj)
inlinenoexcept

Definition at line 55 of file weak_object.hpp.

◆ operator=() [2/3]

template<typename SYCLObjT >
weak_object& sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::operator= ( const weak_object< SYCLObjT > &  Other)
defaultnoexcept

◆ operator=() [3/3]

template<typename SYCLObjT >
weak_object& sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::operator= ( weak_object< SYCLObjT > &&  Other)
defaultnoexcept

◆ try_lock()

template<typename SYCLObjT >
std::optional<SYCLObjT> sycl::_V1::ext::oneapi::weak_object< SYCLObjT >::try_lock ( ) const
inlinenoexcept

Definition at line 65 of file weak_object.hpp.


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