![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qevent_p.h>
Public Member Functions | |
QEventStorage () noexcept | |
QEventStorage (const Event &e) | |
~QEventStorage () | |
operator bool () const noexcept | |
bool | operator! () const noexcept |
Event & | store (const Event &e) |
Event & | storeUnlessAlias (const Event &e) |
const Event & | operator* () const |
Event & | operator* () |
const Event * | operator-> () const |
Event * | operator-> () |
This class provides a way to store copies of QEvents. QEvents can otherwise only be copied by \l{QEvent::clone()}{cloning}, which allocates the copy on the heap. By befriending concrete QEvent subclasses, QEventStorage gains access to their protected copy constructors.
It is similar to std::optional, but with a more targeted API.
Note that by storing an event in QEventStorage, it may be sliced.
Definition at line 41 of file qevent_p.h.
|
inlinenoexcept |
Definition at line 66 of file qevent_p.h.
References m_eventNotSet.
|
inlineexplicit |
Definition at line 67 of file qevent_p.h.
|
inline |
Definition at line 72 of file qevent_p.h.
|
inlineexplicitnoexcept |
Definition at line 78 of file qevent_p.h.
|
inlinenoexcept |
Definition at line 79 of file qevent_p.h.
|
inline |
Definition at line 102 of file qevent_p.h.
|
inline |
Definition at line 96 of file qevent_p.h.
|
inline |
Definition at line 114 of file qevent_p.h.
|
inline |
Definition at line 108 of file qevent_p.h.
|
inline |
Definition at line 81 of file qevent_p.h.
Referenced by storeUnlessAlias().
|
inline |
Definition at line 89 of file qevent_p.h.
References store().
Event QEventStorage< Event >::m_event |
Definition at line 47 of file qevent_p.h.
char QEventStorage< Event >::m_eventNotSet |
Definition at line 46 of file qevent_p.h.
Referenced by QEventStorage().