Zth (libzth)
Loading...
Searching...
No Matches
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
 
 operator bool () const noexcept
 

Detailed Description

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

Definition at line 68 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 71 of file sync.h.

◆ SharedPointer() [2/3]

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

Definition at line 78 of file sync.h.

◆ ~SharedPointer()

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

Definition at line 85 of file sync.h.

◆ SharedPointer() [3/3]

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

Definition at line 112 of file sync.h.

Member Function Documentation

◆ get()

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

Definition at line 125 of file sync.h.

◆ operator bool()

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

Definition at line 154 of file sync.h.

◆ operator T*()

template<typename T >
constexpr zth::SharedPointer< T >::operator T* ( ) 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 135 of file sync.h.

◆ operator->()

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

Definition at line 141 of file sync.h.

◆ operator=() [1/3]

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

Definition at line 118 of file sync.h.

◆ operator=() [2/3]

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

Definition at line 105 of file sync.h.

◆ operator=() [3/3]

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

Definition at line 99 of file sync.h.

◆ release()

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

Definition at line 147 of file sync.h.

◆ reset()

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

Definition at line 90 of file sync.h.


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