KiCad PCB EDA Suite
|
Simple RAII-handle to a subscription. More...
#include <observable.h>
Public Member Functions | |
LINK () | |
LINK (std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPL > token, void *observer) | |
LINK (LINK &&other) | |
LINK (const LINK &)=delete | |
void | operator= (const LINK &)=delete |
LINK & | operator= (LINK &&other) |
void | reset () |
operator bool () const | |
~LINK () | |
Private Attributes | |
std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPL > | token_ |
void * | observer_ |
Simple RAII-handle to a subscription.
Definition at line 102 of file observable.h.
UTIL::LINK::LINK | ( | ) |
Definition at line 120 of file observable.cpp.
UTIL::LINK::LINK | ( | std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPL > | token, |
void * | observer | ||
) |
Definition at line 126 of file observable.cpp.
UTIL::LINK::LINK | ( | LINK && | other | ) |
Definition at line 132 of file observable.cpp.
|
delete |
UTIL::LINK::~LINK | ( | ) |
Definition at line 154 of file observable.cpp.
References reset().
|
explicit |
Definition at line 148 of file observable.cpp.
|
delete |
Definition at line 139 of file observable.cpp.
void UTIL::LINK::reset | ( | ) |
Definition at line 160 of file observable.cpp.
References observer_, and token_.
Referenced by ~LINK().
|
private |
Definition at line 121 of file observable.h.
Referenced by operator=(), and reset().
|
private |
Definition at line 120 of file observable.h.
Referenced by operator=(), and reset().