|
Giri's C++ Support Library
C++ library providing everything you need to quickly create awesome applications.
|
Observer class. Inherited classes can observe all classes which inherit from Observable. More...
#include <Observer.h>


Public Member Functions | |
| virtual void | update (std::shared_ptr< U > observable)=0 |
Additional Inherited Members | |
Public Types inherited from giri::Object< Observer< U > > | |
| using | SPtr = std::shared_ptr< Observer< U > > |
| using | UPtr = std::unique_ptr< Observer< U > > |
| using | WPtr = std::weak_ptr< Observer< U > > |
Observer class. Inherited classes can observe all classes which inherit from Observable.
|
pure virtual |
Called by Observable on notify.
| observable | Object that triggered the update. |