Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > Class Template Reference

#include <qcore_mac_p.h>

+ Inheritance diagram for QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >:
+ Collaboration diagram for QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >:

Public Member Functions

Q_NODISCARD_CTOR QAppleRefCounted ()
 
Q_NODISCARD_CTOR QAppleRefCounted (const T &t)
 
Q_NODISCARD_CTOR QAppleRefCounted (T &&t) noexcept(std::is_nothrow_move_constructible< T >::value)
 
Q_NODISCARD_CTOR QAppleRefCounted (QAppleRefCounted &&other) noexcept(std::is_nothrow_move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value)
 
Q_NODISCARD_CTOR QAppleRefCounted (const QAppleRefCounted &other)
 
 ~QAppleRefCounted ()
 
 operator T () const
 
void swap (QAppleRefCounted &other) noexcept(noexcept(qSwap(value, other.value)))
 
QAppleRefCountedoperator= (const QAppleRefCounted &other)
 
QAppleRefCountedoperator= (QAppleRefCounted &&other) noexcept(std::is_nothrow_move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value)
 
T * operator& ()
 

Protected Attributes

value
 

Detailed Description

template<typename T, typename U, auto RetainFunction, auto ReleaseFunction>
class QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >

Definition at line 85 of file qcore_mac_p.h.

Constructor & Destructor Documentation

◆ QAppleRefCounted() [1/5]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
Q_NODISCARD_CTOR QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::QAppleRefCounted ( )
inline

Definition at line 88 of file qcore_mac_p.h.

◆ QAppleRefCounted() [2/5]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
Q_NODISCARD_CTOR QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::QAppleRefCounted ( const T & t)
inline

Definition at line 89 of file qcore_mac_p.h.

◆ QAppleRefCounted() [3/5]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
Q_NODISCARD_CTOR QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::QAppleRefCounted ( T && t)
inlinenoexcept

Definition at line 90 of file qcore_mac_p.h.

◆ QAppleRefCounted() [4/5]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
Q_NODISCARD_CTOR QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::QAppleRefCounted ( QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > && other)
inlinenoexcept

Definition at line 93 of file qcore_mac_p.h.

◆ QAppleRefCounted() [5/5]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
Q_NODISCARD_CTOR QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::QAppleRefCounted ( const QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > & other)
inline

Definition at line 97 of file qcore_mac_p.h.

◆ ~QAppleRefCounted()

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::~QAppleRefCounted ( )
inline

Definition at line 100 of file qcore_mac_p.h.

Member Function Documentation

◆ operator T()

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator T ( ) const
inline

Definition at line 101 of file qcore_mac_p.h.

◆ operator&()

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
T * QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator& ( )
inline

◆ operator=() [1/2]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
QAppleRefCounted & QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator= ( const QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > & other)
inline

Definition at line 104 of file qcore_mac_p.h.

References copy(), other(), and QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::swap().

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
QAppleRefCounted & QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator= ( QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > && other)
inlinenoexcept

Definition at line 106 of file qcore_mac_p.h.

References other(), and QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::swap().

+ Here is the call graph for this function:

◆ swap()

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
void QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::swap ( QAppleRefCounted< T, U, RetainFunction, ReleaseFunction > & other)
inlinenoexcept

Definition at line 102 of file qcore_mac_p.h.

References other(), and qSwap().

Referenced by QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator=(), and QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ value

template<typename T , typename U , auto RetainFunction, auto ReleaseFunction>
T QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::value
protected

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