18 #ifndef ION_BASE_NOTIFIER_H_
19 #define ION_BASE_NOTIFIER_H_
39 void AddReceiver(
Notifier* receiver);
43 void RemoveReceiver(
Notifier* receiver);
46 size_t GetReceiverCount()
const;
59 const NotifierPtrVector& GetReceivers()
const;
66 virtual void OnNotify(
const Notifier* notifier);
70 mutable NotifierPtrVector receivers_;
78 #endif // ION_BASE_NOTIFIER_H_
Notifier()
The constructor is protected because this is a base class and should not be created on its own...
A Notifier both sends notifications to and receives notifications from other Notifiers.
AllocVector< NotifierPtr > NotifierPtrVector
WeakReferentPtr< Notifier > NotifierPtr
The ReadWriteLock class defines a non-promotable lock that is very fast when only readers try to obta...
Abstract base class that inherits from Referent, and adds the ability for instances to be referenced ...
port::Mutex mutex_
Protects shared access to the Allocator and FT_Library.
A WeakReferentPtr is a weak reference to an instance of some class derived from Referent.