|
Scroom
0.14
|
#include <observable.hh>

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

|
static |
| void Scroom::Utils::Detail::Registration< T >::set | ( | boost::shared_ptr< T > | observer | ) |
Referenced by Scroom::Utils::Observable< TileLoadingObserver >::registerObserver(), and Scroom::Utils::Observable< TileLoadingObserver >::registerStrongObserver().

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