Go to the documentation of this file.
40 template <
class EVENTTYPE>
43 return dynamic_cast<const EVENTTYPE*
>(
this) !=
nullptr;
46 template <
class EVENTTYPE>
47 inline const EVENTTYPE*
getAs()
const
49 return dynamic_cast<const EVENTTYPE*
>(
this);
52 template <
class EVENTTYPE>
55 return const_cast<EVENTTYPE*
>(
dynamic_cast<const EVENTTYPE*
>(
this));
The basic event type for the observer-observable pattern in MRPT.
virtual void do_nothing()
Just to allow this class to be polymorphic.
mrpt::Clock::time_point timestamp
mrptEventOnDestroy(const CObservable *obj)
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Clock that is compatible with MRPT TTimeStamp representation.
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
void do_nothing() override
Just to allow this class to be polymorphic.
EVENTTYPE * getAsNonConst() const
std::chrono::time_point< Clock > time_point
const EVENTTYPE * getAs() const
Inherit from this class for those objects capable of being observed by a CObserver class.
const CObservable * source_object
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 23:51:15 UTC 2020 | |