Loading...
Searching...
No Matches
Go to the documentation of this file.
14#ifndef PLASK__UTILS_EVENT_H
15#define PLASK__UTILS_EVENT_H
29template <
typename SourceType,
typename _FlagsType =
unsigned char>
46 const SourceType*
source()
const {
return _source; }
52 SourceType*
source() {
return _source; }
61 const T*
casted =
dynamic_cast<const T*
>(_source);
62 if (!
casted && _source)
throw std::bad_cast();
73 T*
casted =
dynamic_cast<T*
>(_source);
74 if (!
casted && _source)
throw std::bad_cast();