42 template <
class EVENTTYPE>
45 return dynamic_cast<const EVENTTYPE*
>(
this) !=
nullptr;
48 template <
class EVENTTYPE>
49 inline const EVENTTYPE*
getAs()
const 51 return dynamic_cast<const EVENTTYPE*
>(
this);
54 template <
class EVENTTYPE>
57 return const_cast<EVENTTYPE*
>(
dynamic_cast<const EVENTTYPE*
>(
this));
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
void do_nothing() override
Just to allow this class to be polymorphic.
The basic event type for the observer-observable pattern in MRPT.
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
const EVENTTYPE * getAs() const
GLsizei GLsizei GLuint * obj
mrpt::system::TTimeStamp timestamp
virtual void do_nothing()
Just to allow this class to be polymorphic.
mrptEventOnDestroy(const CObservable *obj)
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
EVENTTYPE * getAsNonConst() const
const CObservable * source_object
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Inherit from this class for those objects capable of being observed by a CObserver class...