74 #ifndef __UT_Notifier_h__
75 #define __UT_Notifier_h__
96 template <
typename EVENT_TYPE>
159 int64 mem = inclusive ?
sizeof(*this) : 0;
188 void removeAllObservers();
195 void pruneObservers();
199 typedef std::pair< UT_NotifierList*, Callback> ObserverPair;
208 bool myNotifyingFlag;
209 bool myPendingRemovalFlag;
215 #endif // __UT_Notifier_h__
virtual bool hasObserver(const UT_NotifierList &list) const
int64 getMemoryUsage(bool inclusive=false) const
void removeObserver(UT_NotifierList &list) override
virtual void notifyObservers(EVENT_TYPE event)
UT_Functor1< void, EVENT_TYPE > Callback
~UT_NotifierImpl() override
exint entries() const
Alias of size(). size() is preferred.
bool hasObservers() const
int64 getMemoryUsage(bool inclusive) const
Returns the amount of memory owned by this UT_NotifierImpl.
virtual void addObserver(UT_NotifierList &list, Callback &callback)