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
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
 
 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 4019 of file qobject.cpp.

Constructor & Destructor Documentation

◆ SlotObjectGuard() [1/4]

SlotObjectGuard::SlotObjectGuard ( )
default

◆ SlotObjectGuard() [2/4]

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

Definition at line 4023 of file qobject.cpp.

◆ ~SlotObjectGuard() [1/2]

SlotObjectGuard::~SlotObjectGuard ( )
default

◆ SlotObjectGuard() [3/4]

SlotObjectGuard::SlotObjectGuard ( )
default

◆ SlotObjectGuard() [4/4]

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

Definition at line 4023 of file qobject.cpp.

◆ ~SlotObjectGuard() [2/2]

SlotObjectGuard::~SlotObjectGuard ( )
default

Member Function Documentation

◆ operator->() [1/4]

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

Definition at line 4033 of file qobject.cpp.

◆ operator->() [2/4]

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

Definition at line 4033 of file qobject.cpp.

◆ operator->() [3/4]

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

Definition at line 4030 of file qobject.cpp.

◆ operator->() [4/4]

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

Definition at line 4030 of file qobject.cpp.


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