casa
$Rev:20696$
|
base class for notice originators More...
#include <Notice.h>
Public Member Functions | |
NoticeSource () | |
virtual | ~NoticeSource () |
void | notify (const Notice ¬e) |
Sends the note to all NoticeTarget s in the target list. | |
Private Member Functions | |
Link< NoticeTarget * > *& | head () |
Private Attributes | |
Link< NoticeTarget * > * | curIters |
Friends | |
class | NoticeTarget |
base class for notice originators
Public interface
A NoticeSource
maintains a list of all of the NoticeTarget
s which are interested in Notice
s from this NoticeSource
. Its member function notify()
sends the specified Notice
to all the NoticeTarget
s in the list.
Classes which have many other dependent objects which need to be updated, should derive from this class.
List , the linked list class, is derived from NoticeSource
. It mainly contains status information; all the manipulation functions are located in the ListIter classes. The linked list and its iterators communicate with each other via the notice system. List
does not provide any further notice functionality; everything is taken care of by its base class NoticeSource
.
casa::NoticeSource::NoticeSource | ( | ) | [inline] |
virtual casa::NoticeSource::~NoticeSource | ( | ) | [virtual] |
Link<NoticeTarget*>*& casa::NoticeSource::head | ( | ) | [inline, private] |
void casa::NoticeSource::notify | ( | const Notice & | note | ) |
Sends the note
to all NoticeTarget
s in the target list.
friend class NoticeTarget [friend] |
Link<NoticeTarget*>* casa::NoticeSource::curIters [private] |