FreePOOMA  2.4.1
Classes
Observable.h File Reference

A base or wrapper class for an object of type T that needs to allow other objects to 'observe' it. More...

#include "Threads/PoomaMutex.h"
#include "Utilities/Observer.h"
#include "Utilities/PAssert.h"
#include <vector>
Include dependency graph for Observable.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Observable< T >
 The Observable class, along with the Observer class, are used to implement the observer pattern. More...
class  SingleObservable< T >
 SingleObservable is an optimized observable that can only be observed by one observer. More...

Detailed Description

A base or wrapper class for an object of type T that needs to allow other objects to 'observe' it.

Observable, with Observer, is used to implement the observer pattern. Observer<T> objects will register themselves with the Observable, and the Observable will notify them of changes to the observed object.

SingleObservable<T>: An optimized observable that can only be viewed by a single observer.