Go to the documentation of this file.
21 while (!m_subscribed.empty()) this->observeEnd(**m_subscribed.begin());
28 m_subscribed.insert(&
obj);
29 obj.internal_observer_begin(
this);
38 auto it = m_subscribed.find(&
obj);
39 if (it != m_subscribed.end())
41 (*it)->internal_observer_end(
this);
42 m_subscribed.erase(it);
The basic event type for the observer-observable pattern in MRPT.
GLsizei GLsizei GLuint * obj
void observeBegin(CObservable &obj)
Starts the subscription of this observer to the given object.
void observeEnd(CObservable &obj)
Ends the subscription of this observer to the given object (note that there is no need to call this m...
Inherit from this class for those objects capable of being observed by a CObserver class.
void internal_on_event(const mrptEvent &e)
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |