Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAutoPointer< T > Class Template Reference

#include <qdialog_p.h>

Collaboration diagram for QAutoPointer< T >:

Public Member Functions

Q_NODISCARD_CTOR QAutoPointer ()=default
Q_NODISCARD_CTOR QAutoPointer (std::nullptr_t) noexcept
Q_NODISCARD_CTOR QAutoPointer (T *tt) noexcept
Q_NODISCARD_CTOR QAutoPointer (QAutoPointer &&other) noexcept
 ~QAutoPointer ()
void swap (QAutoPointer &other) noexcept
T * operator-> () const noexcept
T * get () const noexcept
T & operator* () const
 operator bool () const noexcept
bool operator! () const noexcept

Friends

void swap (QAutoPointer &lhs, QAutoPointer &rhs) noexcept

Detailed Description

template<typename T>
class QAutoPointer< T >

Definition at line 108 of file qdialog_p.h.

Constructor & Destructor Documentation

◆ QAutoPointer() [1/4]

template<typename T>
Q_NODISCARD_CTOR QAutoPointer< T >::QAutoPointer ( )
default

◆ QAutoPointer() [2/4]

template<typename T>
Q_NODISCARD_CTOR QAutoPointer< T >::QAutoPointer ( std::nullptr_t )
inlinenoexcept

Definition at line 112 of file qdialog_p.h.

◆ QAutoPointer() [3/4]

template<typename T>
Q_NODISCARD_CTOR QAutoPointer< T >::QAutoPointer ( T * t)
inlineexplicitnoexcept

Definition at line 113 of file qdialog_p.h.

◆ QAutoPointer() [4/4]

template<typename T>
Q_NODISCARD_CTOR QAutoPointer< T >::QAutoPointer ( QAutoPointer< T > && other)
inlinenoexcept

Definition at line 114 of file qdialog_p.h.

◆ ~QAutoPointer()

template<typename T>
QAutoPointer< T >::~QAutoPointer ( )
inline

Definition at line 117 of file qdialog_p.h.

Member Function Documentation

◆ get()

template<typename T>
T * QAutoPointer< T >::get ( ) const
inlinenoexcept

Definition at line 124 of file qdialog_p.h.

Referenced by operator*(), and operator->().

Here is the caller graph for this function:

◆ operator bool()

template<typename T>
QAutoPointer< T >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 126 of file qdialog_p.h.

◆ operator!()

template<typename T>
bool QAutoPointer< T >::operator! ( ) const
inlinenoexcept

Definition at line 127 of file qdialog_p.h.

◆ operator*()

template<typename T>
T & QAutoPointer< T >::operator* ( ) const
inline

Definition at line 125 of file qdialog_p.h.

References get().

Here is the call graph for this function:

◆ operator->()

template<typename T>
T * QAutoPointer< T >::operator-> ( ) const
inlinenoexcept

Definition at line 123 of file qdialog_p.h.

References get().

Here is the call graph for this function:

◆ swap()

template<typename T>
void QAutoPointer< T >::swap ( QAutoPointer< T > & other)
inlinenoexcept

Definition at line 119 of file qdialog_p.h.

Referenced by swap.

Here is the caller graph for this function:

◆ swap

template<typename T>
void swap ( QAutoPointer< T > & lhs,
QAutoPointer< T > & rhs )
friend

Definition at line 120 of file qdialog_p.h.

References swap().


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