|
KiCad PCB EDA Suite
|
Move-only RAII wrapper around a single listener registration. More...
#include <property_mgr.h>
Public Member Functions | |
| PROPERTY_LISTENER_SUBSCRIPTION ()=default | |
| PROPERTY_LISTENER_SUBSCRIPTION (TYPE_ID aType, PROPERTY_LISTENER_HANDLE aHandle) | |
| ~PROPERTY_LISTENER_SUBSCRIPTION () | |
| PROPERTY_LISTENER_SUBSCRIPTION (const PROPERTY_LISTENER_SUBSCRIPTION &)=delete | |
| PROPERTY_LISTENER_SUBSCRIPTION & | operator= (const PROPERTY_LISTENER_SUBSCRIPTION &)=delete |
| PROPERTY_LISTENER_SUBSCRIPTION (PROPERTY_LISTENER_SUBSCRIPTION &&aOther) noexcept | |
| PROPERTY_LISTENER_SUBSCRIPTION & | operator= (PROPERTY_LISTENER_SUBSCRIPTION &&aOther) noexcept |
| void | reset () |
Private Attributes | |
| TYPE_ID | m_type = 0 |
| PROPERTY_LISTENER_HANDLE | m_handle = 0 |
Move-only RAII wrapper around a single listener registration.
Returned by PROPERTY_MANAGER::RegisterListener so the listening object can keep the subscription as a member and let its destructor unregister automatically.
Definition at line 387 of file property_mgr.h.
|
default |
Referenced by operator=(), operator=(), PROPERTY_LISTENER_SUBSCRIPTION(), and PROPERTY_LISTENER_SUBSCRIPTION().
|
inline |
Definition at line 392 of file property_mgr.h.
| PROPERTY_LISTENER_SUBSCRIPTION::~PROPERTY_LISTENER_SUBSCRIPTION | ( | ) |
Definition at line 493 of file property_mgr.cpp.
References reset().
|
delete |
References PROPERTY_LISTENER_SUBSCRIPTION().
|
inlinenoexcept |
Definition at line 410 of file property_mgr.h.
References m_handle, m_type, and PROPERTY_LISTENER_SUBSCRIPTION().
|
delete |
References PROPERTY_LISTENER_SUBSCRIPTION().
|
noexcept |
Definition at line 500 of file property_mgr.cpp.
References m_handle, m_type, PROPERTY_LISTENER_SUBSCRIPTION(), and reset().
| void PROPERTY_LISTENER_SUBSCRIPTION::reset | ( | ) |
Definition at line 514 of file property_mgr.cpp.
References PROPERTY_MANAGER::Instance(), m_handle, m_type, and PROPERTY_MANAGER::UnregisterListener().
Referenced by operator=(), and ~PROPERTY_LISTENER_SUBSCRIPTION().
|
private |
Definition at line 423 of file property_mgr.h.
Referenced by operator=(), PROPERTY_LISTENER_SUBSCRIPTION(), PROPERTY_LISTENER_SUBSCRIPTION(), and reset().
|
private |
Definition at line 422 of file property_mgr.h.
Referenced by operator=(), PROPERTY_LISTENER_SUBSCRIPTION(), PROPERTY_LISTENER_SUBSCRIPTION(), and reset().