RISA
glados::cuda::detail::unique_ptr< T, Deleter, t > Class Template Reference

#include <Memory.h>

Public Types

using pointer = T *
 
using element_type = T
 
using deleter_type = Deleter
 

Public Member Functions

constexpr unique_ptr () noexcept
 
constexpr unique_ptr (std::nullptr_t) noexcept
 
 unique_ptr (pointer p) noexcept
 
 unique_ptr (unique_ptr &&other) noexcept
 
auto operator= (unique_ptr &&r) noexcept-> unique_ptr &
 
auto operator= (std::nullptr_t) noexcept-> unique_ptr &
 
auto release () noexcept-> pointer
 
auto reset (pointer ptr=pointer()) noexcept-> void
 
template<class U >
auto reset (U) noexcept-> void=delete
 
auto reset (std::nullptr_t) noexcept-> void
 
auto swap (unique_ptr &other) noexcept-> void
 
auto get () const noexcept-> pointer
 
auto get_deleter () noexcept-> Deleter &
 
auto get_deleter () const noexcept-> const Deleter &
 
 operator bool () const noexcept
 
auto operator[] (std::size_t i) const -> T &
 

Static Public Attributes

static constexpr auto target = Target{t}
 

Private Member Functions

 unique_ptr (const unique_ptr &)=delete
 
auto operator= (const unique_ptr &) -> unique_ptr &=delete
 

Private Attributes

std::unique_ptr< T[], Deleter > ptr_
 

Detailed Description

template<class T, class Deleter, Target t>
class glados::cuda::detail::unique_ptr< T, Deleter, t >

Definition at line 56 of file Memory.h.

Member Typedef Documentation

template<class T, class Deleter, Target t>
using glados::cuda::detail::unique_ptr< T, Deleter, t >::deleter_type = Deleter

Definition at line 61 of file Memory.h.

template<class T, class Deleter, Target t>
using glados::cuda::detail::unique_ptr< T, Deleter, t >::element_type = T

Definition at line 60 of file Memory.h.

template<class T, class Deleter, Target t>
using glados::cuda::detail::unique_ptr< T, Deleter, t >::pointer = T*

Definition at line 59 of file Memory.h.

Constructor & Destructor Documentation

template<class T, class Deleter, Target t>
constexpr glados::cuda::detail::unique_ptr< T, Deleter, t >::unique_ptr ( )
inlinenoexcept

Definition at line 65 of file Memory.h.

template<class T, class Deleter, Target t>
constexpr glados::cuda::detail::unique_ptr< T, Deleter, t >::unique_ptr ( std::nullptr_t  )
inlinenoexcept

Definition at line 69 of file Memory.h.

template<class T, class Deleter, Target t>
glados::cuda::detail::unique_ptr< T, Deleter, t >::unique_ptr ( pointer  p)
inlinenoexcept

Definition at line 73 of file Memory.h.

template<class T, class Deleter, Target t>
glados::cuda::detail::unique_ptr< T, Deleter, t >::unique_ptr ( unique_ptr< T, Deleter, t > &&  other)
inlinenoexcept

Definition at line 77 of file Memory.h.

template<class T, class Deleter, Target t>
glados::cuda::detail::unique_ptr< T, Deleter, t >::unique_ptr ( const unique_ptr< T, Deleter, t > &  )
privatedelete

Member Function Documentation

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::get ( ) const -> pointer
inlinenoexcept

Definition at line 101 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::get_deleter ( ) -> Deleter&
inlinenoexcept

Definition at line 102 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::get_deleter ( ) const -> const Deleter&
inlinenoexcept

Definition at line 103 of file Memory.h.

template<class T, class Deleter, Target t>
glados::cuda::detail::unique_ptr< T, Deleter, t >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 104 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::operator= ( unique_ptr< T, Deleter, t > &&  r) -> unique_ptr&
inlinenoexcept

Definition at line 81 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::operator= ( std::nullptr_t  ) -> unique_ptr&
inlinenoexcept

Definition at line 87 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::operator= ( const unique_ptr< T, Deleter, t > &  ) -> unique_ptr &=delete
privatedelete
template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::operator[] ( std::size_t  i) const -> T&
inline

Definition at line 105 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::release ( ) -> pointer
inlinenoexcept

Definition at line 93 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::reset ( pointer  ptr = pointer()) -> void
inlinenoexcept

Definition at line 94 of file Memory.h.

template<class T, class Deleter, Target t>
template<class U >
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::reset ( ) -> void=delete
deletenoexcept
template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::reset ( std::nullptr_t  ) -> void
inlinenoexcept

Definition at line 99 of file Memory.h.

template<class T, class Deleter, Target t>
auto glados::cuda::detail::unique_ptr< T, Deleter, t >::swap ( unique_ptr< T, Deleter, t > &  other) -> void
inlinenoexcept

Definition at line 100 of file Memory.h.

Member Data Documentation

template<class T, class Deleter, Target t>
std::unique_ptr<T[], Deleter> glados::cuda::detail::unique_ptr< T, Deleter, t >::ptr_
private

Definition at line 112 of file Memory.h.

template<class T, class Deleter, Target t>
constexpr auto glados::cuda::detail::unique_ptr< T, Deleter, t >::target = Target{t}
static

Definition at line 62 of file Memory.h.


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