Observable Reference
Generic observable objects for C++
List of all members
observable::subject< ObserverType, EnclosingType > Class Template Reference

Description

template<typename ObserverType, typename EnclosingType>
class observable::subject< ObserverType, EnclosingType >

Subject specialization that can be used inside a class, as a member, to prevent external code from calling notify(), but still allow anyone to subscribe.

Note
Except for the notify() method being private, this specialization is exactly the same as a regular subject.
Template Parameters
ObserverTypeThe function type of the observers that will subscribe to notifications.
EnclosingTypeThis type will be declared a friend of the subject and will have access to the notify() method.
See also
subject<void(Args ...)>