|
PLaSK library
|
Base class for classes which store information about event generated by objects of type SourceType.
More...
#include <plask/utils/event.hpp>
Public Types | |
| typedef _FlagsType | FlagsType |
Public Member Functions | |
| const SourceType * | source () const |
| Get source of event. | |
| SourceType * | source () |
| Get source of event. | |
| template<typename T > | |
| const T * | source () const |
| Get source of event casted (using dynamic_cast) to given type T. | |
| template<typename T > | |
| T * | source () |
| Get source of event casted (using dynamic_cast) to given type T. | |
| FlagsType | flags () const |
| Get event's flags. | |
| FlagsType | flagsWithout (FlagsType flagsToRemove) const |
Get event's flags with excluded flagsToRemove. | |
| bool | hasAllFlags (FlagsType flags) const |
Check if given all of flags are set. | |
| bool | hasAnyFlag (FlagsType flags) const |
Check if one of given flags are set. | |
| EventWithSourceAndFlags (SourceType *source, FlagsType flags=0) | |
| Construct event. | |
| virtual | ~EventWithSourceAndFlags () |
| Virtual destructor for eventual subclassing. | |
Base class for classes which store information about event generated by objects of type SourceType.
It contains flags field which describes additional event properties. Subclasses of subclasses of this can also contains additional information about specific type of event.
| typedef _FlagsType plask::EventWithSourceAndFlags< SourceType, _FlagsType >::FlagsType |
|
inlineexplicit |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |