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
QBiPointer< T, T2 > Class Template Reference

#include <qbipointer_p.h>

Collaboration diagram for QBiPointer< T, T2 >:

Public Member Functions

Q_NODISCARD_CTOR constexpr QBiPointer () noexcept=default
 ~QBiPointer () noexcept=default
Q_NODISCARD_CTOR QBiPointer (const QBiPointer &o) noexcept=default
Q_NODISCARD_CTOR QBiPointer (QBiPointer &&o) noexcept=default
QBiPointer< T, T2 > & operator= (const QBiPointer< T, T2 > &o) noexcept=default
QBiPointer< T, T2 > & operator= (QBiPointer< T, T2 > &&o) noexcept=default
void swap (QBiPointer &other) noexcept
Q_NODISCARD_CTOR QBiPointer (T *)
Q_NODISCARD_CTOR QBiPointer (T2 *)
bool isNull () const
bool isT1 () const
bool isT2 () const
bool flag () const
void setFlag ()
void clearFlag ()
void setFlagValue (bool)
QBiPointer< T, T2 > & operator= (T *)
QBiPointer< T, T2 > & operator= (T2 *)
T * asT1 () const
T2 * asT2 () const

Friends

bool operator== (QBiPointer< T, T2 > ptr1, QBiPointer< T, T2 > ptr2)
bool operator!= (QBiPointer< T, T2 > ptr1, QBiPointer< T, T2 > ptr2)
void swap (QBiPointer &lhs, QBiPointer &rhs) noexcept
size_t qHash (const QBiPointer< T, T2 > &ptr, size_t seed=0)

Detailed Description

template<typename T, typename T2>
class QBiPointer< T, T2 >

Definition at line 46 of file qbipointer_p.h.

Constructor & Destructor Documentation

◆ QBiPointer() [1/5]

template<typename T, typename T2>
Q_NODISCARD_CTOR constexpr QBiPointer< T, T2 >::QBiPointer ( )
constexprdefaultnoexcept

◆ ~QBiPointer()

template<typename T, typename T2>
QBiPointer< T, T2 >::~QBiPointer ( )
defaultnoexcept

◆ QBiPointer() [2/5]

template<typename T, typename T2>
Q_NODISCARD_CTOR QBiPointer< T, T2 >::QBiPointer ( const QBiPointer< T, T2 > & o)
defaultnoexcept

◆ QBiPointer() [3/5]

template<typename T, typename T2>
Q_NODISCARD_CTOR QBiPointer< T, T2 >::QBiPointer ( QBiPointer< T, T2 > && o)
defaultnoexcept

◆ QBiPointer() [4/5]

template<typename T, typename T2>
QBiPointer< T, T2 >::QBiPointer ( T * v)
inline

Definition at line 109 of file qbipointer_p.h.

◆ QBiPointer() [5/5]

template<typename T, typename T2>
QBiPointer< T, T2 >::QBiPointer ( T2 * v)
inline

Definition at line 118 of file qbipointer_p.h.

Member Function Documentation

◆ asT1()

template<typename T, typename T2>
T * QBiPointer< T, T2 >::asT1 ( ) const
inline

Definition at line 188 of file qbipointer_p.h.

References isT1().

Referenced by QBiPointer< QObject, const QObject >::operator==.

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

◆ asT2()

template<typename T, typename T2>
T2 * QBiPointer< T, T2 >::asT2 ( ) const
inline

Definition at line 195 of file qbipointer_p.h.

References isT2().

Referenced by QBiPointer< QObject, const QObject >::operator==.

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

◆ clearFlag()

template<typename T, typename T2>
void QBiPointer< T, T2 >::clearFlag ( )
inline

Definition at line 157 of file qbipointer_p.h.

Referenced by setFlagValue().

Here is the caller graph for this function:

◆ flag()

template<typename T, typename T2>
bool QBiPointer< T, T2 >::flag ( ) const
inline

Definition at line 145 of file qbipointer_p.h.

◆ isNull()

template<typename T, typename T2>
bool QBiPointer< T, T2 >::isNull ( ) const
inline

Definition at line 127 of file qbipointer_p.h.

Referenced by QBiPointer< QObject, const QObject >::operator==, and QBiPointer< QObject, const QObject >::qHash.

Here is the caller graph for this function:

◆ isT1()

template<typename T, typename T2>
bool QBiPointer< T, T2 >::isT1 ( ) const
inline

Definition at line 133 of file qbipointer_p.h.

Referenced by asT1(), and QBiPointer< QObject, const QObject >::operator==.

Here is the caller graph for this function:

◆ isT2()

template<typename T, typename T2>
bool QBiPointer< T, T2 >::isT2 ( ) const
inline

Definition at line 139 of file qbipointer_p.h.

Referenced by asT2(), and QBiPointer< QObject, const QObject >::operator==.

Here is the caller graph for this function:

◆ operator=() [1/4]

template<typename T, typename T2>
QBiPointer< T, T2 > & QBiPointer< T, T2 >::operator= ( const QBiPointer< T, T2 > & o)
defaultnoexcept

◆ operator=() [2/4]

template<typename T, typename T2>
QBiPointer< T, T2 > & QBiPointer< T, T2 >::operator= ( QBiPointer< T, T2 > && o)
defaultnoexcept

◆ operator=() [3/4]

template<typename T, typename T2>
QBiPointer< T, T2 > & QBiPointer< T, T2 >::operator= ( T * o)
inline

Definition at line 170 of file qbipointer_p.h.

◆ operator=() [4/4]

template<typename T, typename T2>
QBiPointer< T, T2 > & QBiPointer< T, T2 >::operator= ( T2 * o)
inline

Definition at line 179 of file qbipointer_p.h.

◆ setFlag()

template<typename T, typename T2>
void QBiPointer< T, T2 >::setFlag ( )
inline

Definition at line 151 of file qbipointer_p.h.

Referenced by setFlagValue().

Here is the caller graph for this function:

◆ setFlagValue()

template<typename T, typename T2>
void QBiPointer< T, T2 >::setFlagValue ( bool v)
inline

Definition at line 163 of file qbipointer_p.h.

References clearFlag(), and setFlag().

Here is the call graph for this function:

◆ swap()

template<typename T, typename T2>
void QBiPointer< T, T2 >::swap ( QBiPointer< T, T2 > & other)
inlinenoexcept

Definition at line 55 of file qbipointer_p.h.

Referenced by QBiPointer< QObject, const QObject >::swap.

Here is the caller graph for this function:

◆ operator!=

template<typename T, typename T2>
bool operator!= ( QBiPointer< T, T2 > ptr1,
QBiPointer< T, T2 > ptr2 )
friend

Definition at line 82 of file qbipointer_p.h.

◆ operator==

template<typename T, typename T2>
bool operator== ( QBiPointer< T, T2 > ptr1,
QBiPointer< T, T2 > ptr2 )
friend

Definition at line 72 of file qbipointer_p.h.

◆ qHash

template<typename T, typename T2>
size_t qHash ( const QBiPointer< T, T2 > & ptr,
size_t seed = 0 )
friend

Definition at line 92 of file qbipointer_p.h.

◆ swap

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

Definition at line 87 of file qbipointer_p.h.


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