31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Containers/Link.h>
199 {
if (other && other->
isValid())
attach( (*other).container );}
218 return(
ilink ? (*ilink).next() : 0);
221 return(
ilink ? (*ilink).next() : 0);
base class for notice originators
void notify(const Notice ¬e)
Sends the note to all NoticeTargets in the target list.
Link< NoticeTarget * > * curIters
Link< NoticeTarget * > *& head()
abstract base class for notice receptors
Link< NoticeTarget * > * next()
Retrieves the next NoticeTarget in the target list of the associated NoticeSource.
void link(const NoticeTarget &other)
Links this NoticeTarget to the same NoticeSource as the other NoticeTarget.
void attach(NoticeSource &v)
void attach(NoticeSource *v)
Adds this NoticeTarget to the target list in the specified NoticeSource, so that it will receive all ...
NoticeTarget(NoticeSource *v)
Creates a "valid" NoticeTarget linked to the specified NoticeSource.
NoticeTarget(NoticeTarget &other)
Creates a "valid" NoticeTarget linked to the same NoticeSource as the other NoticeTarget.
NoticeTarget(NoticeSource &v)
void invalidate()
Makes the current NoticeTarget "invalid".
const Link< NoticeTarget * > * next() const
virtual ~NoticeTarget()
Destructs this NoticeTarget.
NoticeTarget(NoticeTarget *other)
virtual void notify(const Notice &)=0
Hook through which NoticeTargets are notified (by NoticeSources).
Link< NoticeTarget * > * ilink
Bool isAttached() const
Returns a boolean value telling whether this NoticeTarget is still attached to a NoticeSource or not.
void link(const NoticeTarget *other)
void unlink()
Unlinks this NoticeTarget from its NoticeSource.
NoticeTarget()
Creates an unlinked, "invalid" NoticeTarget.
Bool isValid() const
Returns a boolean value telling whether this NoticeTarget is still "valid".
virtual bool operator==(const Notice &) const =0
Compare two Notices.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.