Zth (libzth)
zth::SharedPointer< T > Class Template Reference

#include <sync.h>

Public Member Functions

constexpr SharedPointer (T *object=nullptr) noexcept
 
constexpr SharedPointer (SharedPointer const &p) noexcept
 
virtual ~SharedPointer ()
 
void reset (T *object=nullptr)
 
SharedPointeroperator= (T *object)
 
SharedPointeroperator= (SharedPointer const &p)
 
constexpr SharedPointer (SharedPointer &&p) noexcept
 
constexpr SharedPointeroperator= (SharedPointer &&p) noexcept
 
constexpr T * get () const noexcept
 
constexpr operator T* () const noexcept
 
constexpr T * operator* () const noexcept
 
constexpr T * operator-> () const noexcept
 
constexpr T * release () noexcept
 

Detailed Description

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

Definition at line 64 of file sync.h.

Constructor & Destructor Documentation

◆ SharedPointer() [1/3]

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

Definition at line 66 of file sync.h.

◆ SharedPointer() [2/3]

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

Definition at line 73 of file sync.h.

◆ ~SharedPointer()

template<typename T >
virtual zth::SharedPointer< T >::~SharedPointer ( )
inlinevirtual

Definition at line 80 of file sync.h.

◆ SharedPointer() [3/3]

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

Definition at line 107 of file sync.h.

Member Function Documentation

◆ get()

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

Definition at line 120 of file sync.h.

◆ operator T*()

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

Definition at line 125 of file sync.h.

◆ operator*()

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

Definition at line 130 of file sync.h.

◆ operator->()

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

Definition at line 136 of file sync.h.

◆ operator=() [1/3]

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

Definition at line 113 of file sync.h.

◆ operator=() [2/3]

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

Definition at line 100 of file sync.h.

◆ operator=() [3/3]

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

Definition at line 94 of file sync.h.

◆ release()

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

Definition at line 142 of file sync.h.

◆ reset()

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

Definition at line 85 of file sync.h.


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