|
Scroom 0.14-49-gb7ae7a6d
|
#include <observable.hh>

Public Types | |
| using | Ptr = std::shared_ptr< Registration< T > > |
Public Member Functions | |
| Registration ()=default | |
| Registration (std::weak_ptr< Observable< T > > observable, std::shared_ptr< T > observer) | |
| Registration (std::weak_ptr< Observable< T > > observable, std::weak_ptr< T > observer) | |
| void | set (std::shared_ptr< T > observer) |
| void | set (std::weak_ptr< T > observer) |
Static Public Member Functions | |
| static Ptr | create (std::weak_ptr< Observable< T > > observable, std::shared_ptr< T > observer) |
| static Ptr | create (std::weak_ptr< Observable< T > > observable, std::weak_ptr< T > observer) |
Public Attributes | |
| std::weak_ptr< Observable< T > > | observable |
| std::shared_ptr< T > | o |
| std::weak_ptr< T > | observer |
Contain all info regarding the registration.
Performs de-registration on destruction
| using Scroom::Utils::Detail::Registration< T >::Ptr = std::shared_ptr<Registration<T> > |
|
default |
| Scroom::Utils::Detail::Registration< T >::Registration | ( | std::weak_ptr< Observable< T > > | observable, |
| std::shared_ptr< T > | observer | ||
| ) |
| Scroom::Utils::Detail::Registration< T >::Registration | ( | std::weak_ptr< Observable< T > > | observable, |
| std::weak_ptr< T > | observer | ||
| ) |
|
static |
Referenced by Scroom::Utils::Observable< T >::registerObserver(), and Scroom::Utils::Observable< T >::registerStrongObserver().

|
static |
| void Scroom::Utils::Detail::Registration< T >::set | ( | std::shared_ptr< T > | observer | ) |
| void Scroom::Utils::Detail::Registration< T >::set | ( | std::weak_ptr< T > | observer | ) |
| std::shared_ptr<T> Scroom::Utils::Detail::Registration< T >::o |
Reference to the observer (for non-weak registrations)
| std::weak_ptr<Observable<T> > Scroom::Utils::Detail::Registration< T >::observable |
| std::weak_ptr<T> Scroom::Utils::Detail::Registration< T >::observer |
Reference to the observer