A common class that all classes providing an observer must inherit.
More...
#include <observable.hpp>
|
virtual void | addObserver (T *observer)=0 |
| Adds the given observer instance.
|
|
virtual void | removeObserver (T *observer)=0 |
| Unregisters the given observer .
|
|
template<typename T>
class molybden::Observable< T >
A common class that all classes providing an observer must inherit.
- Template Parameters
-
- Deprecated:
- this class will be deleted after migration to functional observers.
◆ addObserver()
Adds the given observer
instance.
Does nothing if the given observer
is nullptr
or already registered.
- Parameters
-
observer | an observer instance to add |
◆ removeObserver()
Unregisters the given observer
.
Does nothing if the given observer
is nullptr
or already unregistered.
- Parameters
-
observer | an observer instance to remove |
The documentation for this class was generated from the following file: