#include <Notice.h>
Inheritance diagram for casa::NoticeTarget:


Part of API
A NoticeTarget receives the Notices from the NoticeSource to which it is linked. A target can only be linked to one source.
Classes which are dependent upon a particular NoticeSource should derive from this class.
ListIter and its parent class ConstListIter are the iterators or "dynamic" cursors in the linked List . They are derived from NoticeTarget, and the notice system ensures that multiple cursors are updated as elements are added and removed from the list, according to the following scheme:
NoticeSource List .
Definition at line 152 of file Notice.h.
Public Member Functions | |
| virtual | ~NoticeTarget () |
Destructs this NoticeTarget. | |
| Bool | isValid () const |
Returns a boolean value telling whether this NoticeTarget is still "valid". | |
| Bool | isAttached () const |
Returns a boolean value telling whether this NoticeTarget is still attached to a NoticeSource or not. | |
| void | invalidate () |
Makes the current NoticeTarget "invalid". | |
| virtual void | notify (const Notice &)=0 |
Hook through which NoticeTargets are notified (by NoticeSources). | |
Protected Member Functions | |
| NoticeTarget () | |
Creates an unlinked, "invalid" NoticeTarget. | |
| void | unlink () |
Unlinks this NoticeTarget from its NoticeSource. | |
| void | link (const NoticeTarget &other) |
Links this NoticeTarget to the same NoticeSource as the other NoticeTarget. | |
| void | link (const NoticeTarget *other) |
| Link< NoticeTarget * > * | next () |
Retrieves the next NoticeTarget in the target list of the associated NoticeSource. | |
| const Link< NoticeTarget * > * | next () const |
| void | attach (NoticeSource *v) |
Adds this NoticeTarget to the target list in the specified NoticeSource, so that it will receive all notices sent out by that NoticeSource. | |
| void | attach (NoticeSource &v) |
Protected Attributes | |
| Link< NoticeTarget * > * | ilink |
| NoticeSource * | container |
| Bool | valid |
Friends | |
| class | NoticeSource |
| virtual casa::NoticeTarget::~NoticeTarget | ( | ) | [virtual] |
Destructs this NoticeTarget.
| casa::NoticeTarget::NoticeTarget | ( | ) | [inline, protected] |
Creates an unlinked, "invalid" NoticeTarget.
An invalid NoticeTarget does not occur in the target list of any NoticeSource.
| casa::NoticeTarget::NoticeTarget | ( | NoticeSource * | v | ) | [inline, protected] |
Creates a "valid" NoticeTarget linked to the specified NoticeSource.
The NoticeTarget will be added to the target list in that NoticeSource.
| casa::NoticeTarget::NoticeTarget | ( | NoticeSource & | v | ) | [inline, protected] |
| casa::NoticeTarget::NoticeTarget | ( | NoticeTarget & | other | ) | [inline, protected] |
Creates a "valid" NoticeTarget linked to the same NoticeSource as the other NoticeTarget.
So, both NoticeTargets will occur in the same target list.
| casa::NoticeTarget::NoticeTarget | ( | NoticeTarget * | other | ) | [inline, protected] |
| casa::NoticeTarget::NoticeTarget | ( | NoticeSource * | v | ) | [inline, protected] |
Creates a "valid" NoticeTarget linked to the specified NoticeSource.
The NoticeTarget will be added to the target list in that NoticeSource.
| casa::NoticeTarget::NoticeTarget | ( | NoticeSource & | v | ) | [inline, protected] |
| casa::NoticeTarget::NoticeTarget | ( | NoticeTarget & | other | ) | [inline, protected] |
Creates a "valid" NoticeTarget linked to the same NoticeSource as the other NoticeTarget.
So, both NoticeTargets will occur in the same target list.
| casa::NoticeTarget::NoticeTarget | ( | NoticeTarget * | other | ) | [inline, protected] |
| Bool casa::NoticeTarget::isValid | ( | ) | const [inline] |
Returns a boolean value telling whether this NoticeTarget is still "valid".
Definition at line 161 of file Notice.h.
References valid.
Referenced by casa::ConstListIter< casa::WorldCanvasHolder * >::atEnd(), casa::ConstListIter< casa::WorldCanvasHolder * >::atStart(), casa::ConstListIter< casa::WorldCanvasHolder * >::getRight(), casa::ConstListIter< casa::WorldCanvasHolder * >::len(), NoticeTarget(), casa::ConstListIter< casa::WorldCanvasHolder * >::operator++(), casa::ConstListIter< casa::WorldCanvasHolder * >::pos(), casa::ConstListIter< casa::WorldCanvasHolder * >::step(), casa::ConstListIter< casa::WorldCanvasHolder * >::toEnd(), and casa::ConstListIter< casa::WorldCanvasHolder * >::toStart().
| Bool casa::NoticeTarget::isAttached | ( | ) | const [inline] |
Returns a boolean value telling whether this NoticeTarget is still attached to a NoticeSource or not.
Definition at line 165 of file Notice.h.
References casa::False, ilink, and casa::True.
Referenced by casa::RecordFieldPtr< casa::Array< unsigned char > >::isAttached().
| void casa::NoticeTarget::invalidate | ( | ) | [inline] |
Makes the current NoticeTarget "invalid".
Definition at line 168 of file Notice.h.
References casa::False, and valid.
| virtual void casa::NoticeTarget::notify | ( | const Notice & | ) | [pure virtual] |
Hook through which NoticeTargets are notified (by NoticeSources).
| void casa::NoticeTarget::unlink | ( | ) | [protected] |
Unlinks this NoticeTarget from its NoticeSource.
The NoticeTarget will be removed from the target list.
| void casa::NoticeTarget::link | ( | const NoticeTarget & | other | ) | [protected] |
Links this NoticeTarget to the same NoticeSource as the other NoticeTarget.
Any previous link will be undone.
| void casa::NoticeTarget::link | ( | const NoticeTarget * | other | ) | [protected] |
| Link<NoticeTarget*>* casa::NoticeTarget::next | ( | ) | [inline, protected] |
Retrieves the next NoticeTarget in the target list of the associated NoticeSource.
Definition at line 219 of file Notice.h.
References ilink.
| const Link<NoticeTarget*>* casa::NoticeTarget::next | ( | ) | const [inline, protected] |
| void casa::NoticeTarget::attach | ( | NoticeSource * | v | ) | [protected] |
Adds this NoticeTarget to the target list in the specified NoticeSource, so that it will receive all notices sent out by that NoticeSource.
Referenced by NoticeTarget().
| void casa::NoticeTarget::attach | ( | NoticeSource & | v | ) | [protected] |
friend class NoticeSource [friend] |
Link<NoticeTarget*>* casa::NoticeTarget::ilink [protected] |
NoticeSource* casa::NoticeTarget::container [protected] |
Bool casa::NoticeTarget::valid [protected] |
1.5.1