29 while (!m_subscribers.empty())
30 (*m_subscribers.begin())->observeEnd(*
this);
35 m_subscribers.insert(o);
42 ASSERTMSG_(it!=m_subscribers.end(),
"Ending subscription from an observer not subscribed to this object!")
43 m_subscribers.erase(it);
53 (*it)->internal_on_event(e);
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
The basic event type for the observer-observable pattern in MRPT.
const Scalar * const_iterator
void internal_observer_begin(CObserver *)
void publishEvent(const mrptEvent &e) const
Called when you want this object to emit an event to all the observers currently subscribed to this o...
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
void internal_observer_end(CObserver *)
Inherit from this class to get notified about events from any CObservable object after subscribing to...
#define ASSERTMSG_(f, __ERROR_MSG)