25 while (!m_subscribed.empty())
26 this->observeEnd(** m_subscribed.begin() );
32 m_subscribed.insert(&
obj);
33 obj.internal_observer_begin(
this);
41 if (it!=m_subscribed.end())
43 (*it)->internal_observer_end(
this);
44 m_subscribed.erase(it);
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.
void observeEnd(CObservable &obj)
Ends the subscription of this observer to the given object (note that there is no need to call this m...
GLsizei GLsizei GLuint * obj
void internal_on_event(const mrptEvent &e)
void observeBegin(CObservable &obj)
Starts the subscription of this observer to the given object.
Inherit from this class for those objects capable of being observed by a CObserver class...