Chatterino
Public Member Functions | List of all members
chatterino::QObjectRef< T > Class Template Reference

#include <QObjectRef.hpp>

Public Member Functions

 QObjectRef ()
 
 QObjectRef (T *t)
 
 QObjectRef (const QObjectRef &other)
 
 ~QObjectRef ()
 
QObjectRefoperator= (T *t)
 
 operator bool ()
 
T * operator-> ()
 
T * get ()
 

Detailed Description

template<typename T>
class chatterino::QObjectRef< T >

Holds a pointer to a QObject and resets it to nullptr if the QObject gets destroyed.

Constructor & Destructor Documentation

◆ QObjectRef() [1/3]

template<typename T>
chatterino::QObjectRef< T >::QObjectRef ( )
inline

◆ QObjectRef() [2/3]

template<typename T>
chatterino::QObjectRef< T >::QObjectRef ( T *  t)
inlineexplicit

◆ QObjectRef() [3/3]

template<typename T>
chatterino::QObjectRef< T >::QObjectRef ( const QObjectRef< T > &  other)
inline

◆ ~QObjectRef()

template<typename T>
chatterino::QObjectRef< T >::~QObjectRef ( )
inline

Member Function Documentation

◆ get()

template<typename T>
T* chatterino::QObjectRef< T >::get ( )
inline

◆ operator bool()

template<typename T>
chatterino::QObjectRef< T >::operator bool ( )
inline

◆ operator->()

template<typename T>
T* chatterino::QObjectRef< T >::operator-> ( )
inline

◆ operator=()

template<typename T>
QObjectRef& chatterino::QObjectRef< T >::operator= ( T *  t)
inline

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