Go to the documentation of this file.
41 template <
class EVENTTYPE>
44 return dynamic_cast<const EVENTTYPE*
>(
this) !=
nullptr;
47 template <
class EVENTTYPE>
48 inline const EVENTTYPE*
getAs()
const
50 return dynamic_cast<const EVENTTYPE*
>(
this);
53 template <
class EVENTTYPE>
56 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.
mrptEventOnDestroy(const CObservable *obj)
GLsizei GLsizei GLuint * obj
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::system::TTimeStamp timestamp
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
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
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 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |