Go to the documentation of this file.
37 virtual void do_nothing() { }
42 template <
class EVENTTYPE>
43 inline bool isOfType()
const {
return dynamic_cast<const EVENTTYPE*
>(
this)!=NULL; }
45 template <
class EVENTTYPE>
46 inline const EVENTTYPE*
getAs()
const {
return dynamic_cast<const EVENTTYPE*
>(
this); }
48 template <
class EVENTTYPE>
49 inline EVENTTYPE*
getAsNonConst()
const {
return const_cast<EVENTTYPE*
>(
dynamic_cast<const EVENTTYPE*
>(
this)); }
const EVENTTYPE * getAs() const
The basic event type for the observer-observable pattern in MRPT.
Inherit from this class for those objects capable of being observed by a CObserver class.
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrptEventOnDestroy(const CObservable *obj)
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
mrpt::system::TTimeStamp timestamp
EVENTTYPE * getAsNonConst() const
const CObservable * source_object
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |