Inheritance diagram for Observer:
Definition at line 34 of file Observer.h.
Public Member Functions
|The default constructor. |
|virtual void||update (const Observable *)=0|
|The update method. |
|virtual void||willDelete (const Observable *)|
|The destructor. |
|virtual void update||(||const Observable *||)||
The update method.
This member function is called by the observed Observable when its state has changed The Command argument is optional and may be a null pointer.
Implemented in DataRep, DataSourceController, EpsView, ViewBase, OpenGLView, CutPlotter, PlotterBase, BinningProjector, DyHist1DProjector, DyHist2DProjector, NTupleProjector, Profile2DProjector, ProfileProjector, ProjectorBase, ObserverWrap, QtView, QtViewImp, QtViewWidget, and RootController.
Referenced by Observable::notifyObservers().
|void willDelete||(||const Observable *||)||
Since most Observable objects are owned by its Observer, it is the Observer that issued the delete. Thus the default implementation here does nothing. Derived classes that observe objects owned by another should implement this method to remove the Observable from the list they are observing.
Reimplemented in FunctionRep, DataSourceController, ViewBase, CutPlotter, TextPlotter, BinningProjector, DyHist1DProjector, DyHist2DProjector, NTupleProjector, Profile2DProjector, ProfileProjector, and RootController.