NVIDIA DeepStream SDK API Reference

9.2 Release
nostd::unique_ptr< T > Class Template Reference

Detailed Description

template<class T>
class nostd::unique_ptr< T >

Provide a simplified port of std::unique_ptr that has ABI stability.

Note: This implementation doesn't allow for a custom deleter.

Definition at line 45 of file includes/opentelemetry/nostd/unique_ptr.h.

Inheritance diagram for nostd::unique_ptr< T >:

Public Types

using element_type = typename detail::unique_ptr_element_type< T >::type
 
using pointer = element_type *
 
using element_type = typename detail::unique_ptr_element_type< T >::type
 
using pointer = element_type *
 

Public Member Functions

 unique_ptr () noexcept
 
 unique_ptr (std::nullptr_t) noexcept
 
 unique_ptr (pointer ptr) noexcept
 
 unique_ptr (unique_ptr &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
 unique_ptr (unique_ptr< U > &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
 unique_ptr (std::unique_ptr< U > &&other) noexcept
 
 ~unique_ptr ()
 
unique_ptr & operator= (unique_ptr &&other) noexcept
 
unique_ptr & operator= (std::nullptr_t) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr & operator= (unique_ptr< U > &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr & operator= (std::unique_ptr< U > &&other) noexcept
 
 operator std::unique_ptr< T > () &&noexcept
 
 operator bool () const noexcept
 
element_type & operator* () const noexcept
 
pointer operator-> () const noexcept
 
pointer get () const noexcept
 
void reset (pointer ptr=nullptr) noexcept
 
pointer release () noexcept
 
void swap (unique_ptr &other) noexcept
 
 unique_ptr () noexcept
 
 unique_ptr (std::nullptr_t) noexcept
 
 unique_ptr (pointer ptr) noexcept
 
 unique_ptr (unique_ptr &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
 unique_ptr (unique_ptr< U > &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
 unique_ptr (std::unique_ptr< U > &&other) noexcept
 
 ~unique_ptr ()
 
unique_ptr & operator= (unique_ptr &&other) noexcept
 
unique_ptr & operator= (std::nullptr_t) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr & operator= (unique_ptr< U > &&other) noexcept
 
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr & operator= (std::unique_ptr< U > &&other) noexcept
 
 operator std::unique_ptr< T > () &&noexcept
 
 operator bool () const noexcept
 
element_type & operator* () const noexcept
 
pointer operator-> () const noexcept
 
pointer get () const noexcept
 
void reset (pointer ptr=nullptr) noexcept
 
pointer release () noexcept
 
void swap (unique_ptr &other) noexcept
 

Member Typedef Documentation

◆ element_type [1/2]

template<class T >
using nostd::unique_ptr< T >::element_type = typename detail::unique_ptr_element_type<T>::type

Definition at line 48 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ element_type [2/2]

template<class T >
using nostd::unique_ptr< T >::element_type = typename detail::unique_ptr_element_type<T>::type

◆ pointer [1/2]

template<class T >
using nostd::unique_ptr< T >::pointer = element_type *

◆ pointer [2/2]

template<class T >
using nostd::unique_ptr< T >::pointer = element_type *

Definition at line 49 of file includes/opentelemetry/nostd/unique_ptr.h.

Constructor & Destructor Documentation

◆ unique_ptr() [1/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( )
inlinenoexcept

Definition at line 51 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [2/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( std::nullptr_t  )
inlinenoexcept

Definition at line 53 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [3/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( pointer  ptr)
inlineexplicitnoexcept

Definition at line 55 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [4/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( unique_ptr< T > &&  other)
inlinenoexcept

Definition at line 57 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [5/12]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
nostd::unique_ptr< T >::unique_ptr ( unique_ptr< U > &&  other)
inlinenoexcept

Definition at line 61 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [6/12]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
nostd::unique_ptr< T >::unique_ptr ( std::unique_ptr< U > &&  other)
inlinenoexcept

Definition at line 66 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ ~unique_ptr() [1/2]

template<class T >
nostd::unique_ptr< T >::~unique_ptr ( )
inline

Definition at line 69 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ unique_ptr() [7/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( )
inlinenoexcept

◆ unique_ptr() [8/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( std::nullptr_t  )
inlinenoexcept

◆ unique_ptr() [9/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( pointer  ptr)
inlineexplicitnoexcept

◆ unique_ptr() [10/12]

template<class T >
nostd::unique_ptr< T >::unique_ptr ( unique_ptr< T > &&  other)
inlinenoexcept

◆ unique_ptr() [11/12]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
nostd::unique_ptr< T >::unique_ptr ( unique_ptr< U > &&  other)
inlinenoexcept

◆ unique_ptr() [12/12]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
nostd::unique_ptr< T >::unique_ptr ( std::unique_ptr< U > &&  other)
inlinenoexcept

◆ ~unique_ptr() [2/2]

template<class T >
nostd::unique_ptr< T >::~unique_ptr ( )
inline

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

template<class T >
pointer nostd::unique_ptr< T >::get ( ) const
inlinenoexcept

◆ operator bool() [1/2]

template<class T >
nostd::unique_ptr< T >::operator bool ( ) const
inlinenoexcept

◆ operator bool() [2/2]

template<class T >
nostd::unique_ptr< T >::operator bool ( ) const
inlinenoexcept

Definition at line 101 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator std::unique_ptr< T >() [1/2]

template<class T >
nostd::unique_ptr< T >::operator std::unique_ptr< T > ( ) &&
inlinenoexcept

◆ operator std::unique_ptr< T >() [2/2]

template<class T >
nostd::unique_ptr< T >::operator std::unique_ptr< T > ( ) &&
inlinenoexcept

Definition at line 99 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator*() [1/2]

template<class T >
element_type& nostd::unique_ptr< T >::operator* ( ) const
inlinenoexcept

◆ operator*() [2/2]

template<class T >
element_type& nostd::unique_ptr< T >::operator* ( ) const
inlinenoexcept

Definition at line 103 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator->() [1/2]

template<class T >
pointer nostd::unique_ptr< T >::operator-> ( ) const
inlinenoexcept

Definition at line 105 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator->() [2/2]

template<class T >
pointer nostd::unique_ptr< T >::operator-> ( ) const
inlinenoexcept

◆ operator=() [1/8]

template<class T >
unique_ptr& nostd::unique_ptr< T >::operator= ( std::nullptr_t  )
inlinenoexcept

Definition at line 77 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator=() [2/8]

template<class T >
unique_ptr& nostd::unique_ptr< T >::operator= ( std::nullptr_t  )
inlinenoexcept

◆ operator=() [3/8]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr& nostd::unique_ptr< T >::operator= ( std::unique_ptr< U > &&  other)
inlinenoexcept

◆ operator=() [4/8]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr& nostd::unique_ptr< T >::operator= ( std::unique_ptr< U > &&  other)
inlinenoexcept

Definition at line 93 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator=() [5/8]

template<class T >
unique_ptr& nostd::unique_ptr< T >::operator= ( unique_ptr< T > &&  other)
inlinenoexcept

Definition at line 71 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator=() [6/8]

template<class T >
unique_ptr& nostd::unique_ptr< T >::operator= ( unique_ptr< T > &&  other)
inlinenoexcept

◆ operator=() [7/8]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr& nostd::unique_ptr< T >::operator= ( unique_ptr< U > &&  other)
inlinenoexcept

Definition at line 85 of file includes/opentelemetry/nostd/unique_ptr.h.

◆ operator=() [8/8]

template<class T >
template<class U , typename std::enable_if< std::is_convertible< U *, pointer >::value >::type * = nullptr>
unique_ptr& nostd::unique_ptr< T >::operator= ( unique_ptr< U > &&  other)
inlinenoexcept

◆ release() [1/2]

◆ release() [2/2]

template<class T >
pointer nostd::unique_ptr< T >::release ( )
inlinenoexcept

◆ reset() [1/2]

template<class T >
void nostd::unique_ptr< T >::reset ( pointer  ptr = nullptr)
inlinenoexcept

◆ reset() [2/2]

template<class T >
void nostd::unique_ptr< T >::reset ( pointer  ptr = nullptr)
inlinenoexcept

◆ swap() [1/2]

template<class T >
void nostd::unique_ptr< T >::swap ( unique_ptr< T > &  other)
inlinenoexcept

◆ swap() [2/2]

template<class T >
void nostd::unique_ptr< T >::swap ( unique_ptr< T > &  other)
inlinenoexcept

Definition at line 125 of file includes/opentelemetry/nostd/unique_ptr.h.


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