KiCad PCB EDA Suite
|
#include <observable.h>
Classes | |
struct | IMPL |
Public Member Functions | |
OBSERVABLE_BASE () | |
OBSERVABLE_BASE (OBSERVABLE_BASE &other) | |
~OBSERVABLE_BASE () | |
size_t | size () const |
Protected Member Functions | |
void | on_observers_empty () |
void | enter_iteration () |
void | leave_iteration () |
void | add_observer (void *observer) |
void | remove_observer (void *observer) |
Protected Attributes | |
std::shared_ptr< IMPL > | impl_ |
Private Member Functions | |
void | allocate_impl () |
void | allocate_shared_impl () |
void | deallocate_impl () |
std::shared_ptr< IMPL > | get_shared_impl () |
Friends | |
class | UTIL::LINK |
Definition at line 43 of file observable.h.
UTIL::DETAIL::OBSERVABLE_BASE::OBSERVABLE_BASE | ( | ) |
Definition at line 172 of file observable.cpp.
UTIL::DETAIL::OBSERVABLE_BASE::OBSERVABLE_BASE | ( | OBSERVABLE_BASE & | other | ) |
Definition at line 177 of file observable.cpp.
UTIL::DETAIL::OBSERVABLE_BASE::~OBSERVABLE_BASE | ( | ) |
Definition at line 183 of file observable.cpp.
|
protected |
Definition at line 216 of file observable.cpp.
References allocate_impl(), and impl_.
|
private |
|
private |
|
private |
Definition at line 204 of file observable.cpp.
References impl_.
Referenced by on_observers_empty().
|
protected |
Definition at line 230 of file observable.cpp.
References impl_.
Referenced by UTIL::OBSERVABLE< ObserverInterface >::Notify(), and UTIL::OBSERVABLE< ObserverInterface >::NotifyIgnore().
|
private |
Definition at line 209 of file observable.cpp.
References allocate_shared_impl(), and impl_.
|
protected |
Definition at line 237 of file observable.cpp.
References impl_.
Referenced by UTIL::OBSERVABLE< ObserverInterface >::Notify(), and UTIL::OBSERVABLE< ObserverInterface >::NotifyIgnore().
|
protected |
Definition at line 258 of file observable.cpp.
References deallocate_impl().
|
protected |
Definition at line 223 of file observable.cpp.
References impl_.
size_t UTIL::DETAIL::OBSERVABLE_BASE::size | ( | ) | const |
Definition at line 249 of file observable.cpp.
References impl_.
|
friend |
Definition at line 54 of file observable.h.
Referenced by UTIL::OBSERVABLE< ObserverInterface >::Subscribe().
|
protected |
Definition at line 93 of file observable.h.
Referenced by add_observer(), allocate_impl(), allocate_shared_impl(), deallocate_impl(), enter_iteration(), get_shared_impl(), leave_iteration(), UTIL::OBSERVABLE< ObserverInterface >::Notify(), UTIL::OBSERVABLE< ObserverInterface >::NotifyIgnore(), remove_observer(), size(), and UTIL::OBSERVABLE< ObserverInterface >::Subscribe().