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 (T *t) noexcept
 ~QAutoPointer ()
T * operator-> () const noexcept
T * get () const noexcept
T & operator* () const
 operator bool () const noexcept
bool operator! () const noexcept

Detailed Description

template<typename T>
class QAutoPointer< T >

Definition at line 106 of file qdialog_p.h.

Constructor & Destructor Documentation

◆ QAutoPointer()

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

Definition at line 109 of file qdialog_p.h.

◆ ~QAutoPointer()

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

Definition at line 110 of file qdialog_p.h.

Member Function Documentation

◆ get()

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

Definition at line 113 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 115 of file qdialog_p.h.

◆ operator!()

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

Definition at line 116 of file qdialog_p.h.

◆ operator*()

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

Definition at line 114 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 112 of file qdialog_p.h.

References get().

Here is the call graph for this function:

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