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
SlotObjectGuard Struct Reference
+ Collaboration diagram for SlotObjectGuard:

Public Member Functions

 SlotObjectGuard ()=default
 
Q_NODISCARD_CTOR SlotObjectGuard (QtPrivate::QSlotObjectBase *slotObject)
 
QtPrivate::QSlotObjectBase const * operator-> () const
 
QtPrivate::QSlotObjectBaseoperator-> ()
 
 ~SlotObjectGuard ()=default
 

Detailed Description

A small RAII helper for QSlotObjectBase. Calls ref on construction and destroyLastRef in its dtor. Allows construction from a nullptr in which case it does nothing.

Definition at line 3899 of file qobject.cpp.

Constructor & Destructor Documentation

◆ SlotObjectGuard() [1/2]

SlotObjectGuard::SlotObjectGuard ( )
default

◆ SlotObjectGuard() [2/2]

Q_NODISCARD_CTOR SlotObjectGuard::SlotObjectGuard ( QtPrivate::QSlotObjectBase * slotObject)
inlineexplicit

Definition at line 3903 of file qobject.cpp.

References QtPrivate::QSlotObjectBase::ref().

+ Here is the call graph for this function:

◆ ~SlotObjectGuard()

SlotObjectGuard::~SlotObjectGuard ( )
default

Member Function Documentation

◆ operator->() [1/2]

QtPrivate::QSlotObjectBase * SlotObjectGuard::operator-> ( )
inline

Definition at line 3913 of file qobject.cpp.

◆ operator->() [2/2]

QtPrivate::QSlotObjectBase const * SlotObjectGuard::operator-> ( ) const
inline

Definition at line 3910 of file qobject.cpp.


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