MRPT  2.0.4
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MyObserver Class Reference

Detailed Description

Definition at line 26 of file vision_stereo_rectify/test.cpp.

Inheritance diagram for MyObserver:

Public Member Functions

void observeBegin (CObservable &obj)
 Starts the subscription of this observer to the given object. More...
 
void observeEnd (CObservable &obj)
 Ends the subscription of this observer to the given object (note that there is no need to call this method, since the destruction of the first of observer/observed will put an end to the process. More...
 

Protected Member Functions

void OnEvent (const mrptEvent &e) override
 This virtual function will be called upon receive of any event after starting listening at any CObservable object. More...
 
void OnEvent (const mrptEvent &e) override
 This virtual function will be called upon receive of any event after starting listening at any CObservable object. More...
 

Private Member Functions

void internal_on_event (const mrptEvent &e)
 

Private Attributes

std::set< CObservable * > m_subscribed
 

Member Function Documentation

◆ internal_on_event()

void CObserver::internal_on_event ( const mrptEvent &  e)
privateinherited

Definition at line 47 of file CObserver.cpp.

◆ observeBegin()

void CObserver::observeBegin ( CObservable &  obj)
inherited

Starts the subscription of this observer to the given object.

See also
observeEnd

Definition at line 26 of file CObserver.cpp.

References mrpt::system::CObservable::internal_observer_begin().

Referenced by CGraphSlamHandler< GRAPH_T >::initVisualization().

◆ observeEnd()

void CObserver::observeEnd ( CObservable &  obj)
inherited

Ends the subscription of this observer to the given object (note that there is no need to call this method, since the destruction of the first of observer/observed will put an end to the process.

See also
observeBegin

Definition at line 36 of file CObserver.cpp.

◆ OnEvent() [1/2]

void MyObserver::OnEvent ( const mrptEvent &  e)
inlineoverrideprotectedvirtual

This virtual function will be called upon receive of any event after starting listening at any CObservable object.

Implements mrpt::system::CObserver.

Definition at line 29 of file vision_stereo_rectify/test.cpp.

◆ OnEvent() [2/2]

void MyObserver::OnEvent ( const mrptEvent &  e)
inlineoverrideprotectedvirtual

This virtual function will be called upon receive of any event after starting listening at any CObservable object.

Implements mrpt::system::CObserver.

Definition at line 33 of file vision_stereo_rectify/test.cpp.

Member Data Documentation

◆ m_subscribed

std::set<CObservable*> mrpt::system::CObserver::m_subscribed
privateinherited

Definition at line 53 of file CObserver.h.




Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020