|
| class | etl::observable< TObserver, MAX_OBSERVERS > |
| |
| class | etl::observer< T1, T2, T3, T4, T5, T6, T7, T8 > |
| |
| class | etl::observer< T1, T2, T3, T4, T5, T6, T7 > |
| |
| class | etl::observer< T1, T2, T3, T4, T5, T6 > |
| |
| class | etl::observer< T1, T2, T3, T4, T5 > |
| |
| class | etl::observer< T1, T2, T3, T4 > |
| |
| class | etl::observer< T1, T2, T3 > |
| |
| class | etl::observer< T1, T2 > |
| |
| class | etl::observer< T1 > |
| |
A templated implementation to simplify the creation of the observer pattern and attempts to eliminate certain runtime errors by turning them into compile errors. The pattern consists of two template classes.
- Observer
This template may take up to eight notification types. Each notification type will generate a pure virtual 'notification' function. The class that inherits from this must define all of the 'notification' function overloads otherwise the object will remain 'abstract' and will not compile. This ensures that no overload can be forgotten.
- Subject
The class derived from this will be observed by the above class. It keeps a list of registered observers and will notify all of them with the notification when instructed.