Zth (libzth)
Loading...
Searching...
No Matches
zth::SharedPointer< T > Class Template Reference

#include <sync.h>

Inheritance diagram for zth::SharedPointer< T >:
zth::SharedPointerOps< SharedPointer< T >, T >

Public Types

typedef T type
 

Public Member Functions

constexpr SharedPointer (T *object=nullptr) noexcept
 
constexpr SharedPointer (SharedPointer const &p) noexcept
 
 ~SharedPointer () noexcept
 
void reset (T *object=nullptr)
 
SharedPointeroperator= (T *object)
 
SharedPointeroperator= (SharedPointer const &p) noexcept
 
constexpr SharedPointer (SharedPointer &&p) noexcept
 
constexpr SharedPointeroperator= (SharedPointer &&p) noexcept
 
constexpr typeget () const noexcept
 
constexpr operator type * () const noexcept
 
constexpr typerelease () noexcept
 
 operator bool () const noexcept
 
- Public Member Functions inherited from zth::SharedPointerOps< SharedPointer< T >, T >
constexpr T & operator* () const noexcept
 
constexpr T * operator-> () const noexcept
 

Detailed Description

template<typename T>
class zth::SharedPointer< T >

Definition at line 74 of file sync.h.

Member Typedef Documentation

◆ type

template<typename T >
typedef T zth::SharedPointer< T >::type

Definition at line 76 of file sync.h.

Constructor & Destructor Documentation

◆ SharedPointer() [1/3]

template<typename T >
constexpr zth::SharedPointer< T >::SharedPointer ( T *  object = nullptr)
inlineconstexprnoexcept

Definition at line 79 of file sync.h.

◆ SharedPointer() [2/3]

template<typename T >
constexpr zth::SharedPointer< T >::SharedPointer ( SharedPointer< T > const &  p)
inlineconstexprnoexcept

Definition at line 86 of file sync.h.

◆ ~SharedPointer()

template<typename T >
zth::SharedPointer< T >::~SharedPointer ( )
inlinenoexcept

Definition at line 93 of file sync.h.

◆ SharedPointer() [3/3]

template<typename T >
constexpr zth::SharedPointer< T >::SharedPointer ( SharedPointer< T > &&  p)
inlineconstexprnoexcept

Definition at line 120 of file sync.h.

Member Function Documentation

◆ get()

template<typename T >
constexpr type * zth::SharedPointer< T >::get ( ) const
inlineconstexprnoexcept

Definition at line 134 of file sync.h.

◆ operator bool()

template<typename T >
zth::SharedPointer< T >::operator bool ( ) const
inlinenoexcept

Definition at line 151 of file sync.h.

◆ operator type *()

template<typename T >
constexpr zth::SharedPointer< T >::operator type * ( ) const
inlineconstexprnoexcept

Definition at line 139 of file sync.h.

◆ operator=() [1/3]

template<typename T >
constexpr SharedPointer & zth::SharedPointer< T >::operator= ( SharedPointer< T > &&  p)
inlineconstexprnoexcept

Definition at line 126 of file sync.h.

◆ operator=() [2/3]

template<typename T >
SharedPointer & zth::SharedPointer< T >::operator= ( SharedPointer< T > const &  p)
inlinenoexcept

Definition at line 113 of file sync.h.

◆ operator=() [3/3]

template<typename T >
SharedPointer & zth::SharedPointer< T >::operator= ( T *  object)
inline

Definition at line 107 of file sync.h.

◆ release()

template<typename T >
constexpr type * zth::SharedPointer< T >::release ( )
inlineconstexprnoexcept

Definition at line 144 of file sync.h.

◆ reset()

template<typename T >
void zth::SharedPointer< T >::reset ( T *  object = nullptr)
inline

Definition at line 98 of file sync.h.


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