Subject(3X) manual page
Table of Contents
Subject - object with multiple views
#include <ivplus/subject.h>
Subject is an object that has one or more views or users that
it notifies. Notification is performed by invoking the Notify() operation.
Because subjects can be shared, Subject is a subclass of Resource. To
allow for the possibility of multiple inheritance, in which case only a
single copy of resource information should be maintained, Resource is
a virtual base class. Subject has an initial reference count of 0. This
means that the programmer needs to explicitly increment the reference count
through a call to Reference().
Subject is an abstract base class.
Subject->Resource
Creates an instance of a
subject. Since Subject is an abstract base class, this constructor is protected.
Adds a view to the subject’s
list of views.
Removes a view from the
subject’s list of views.
Returns whether or not
a given view is on the subject’s list of views.
Notifies
all the views of a subject that it has changed. The default implementation
simply invokes Update() on each view.
None.
No example
for this abstract base class.
subject.h
Resource(3X)
.
Table of Contents