|
CHSM
4.4.1
|
The occurrence of an event ("broadcast") is that which causes transitions in a machine. More...
#include <chsm.h>
Public Member Functions | |
| event (CHSM_EVENT_ARGS) | |
| Construct an event. More... | |
| template<typename EventClass > | |
| bool | is_type () const |
| Checks whether this event is of a particular event type. More... | |
| char const * | name () const |
| Returns the name of this event. More... | |
| void | operator() () |
| Broadcast an event to a machine. More... | |
| virtual | ~event () |
| Destroy an event. More... | |
The occurrence of an event ("broadcast") is that which causes transitions in a machine.
An event has a name, may optionally be derived from another, and may optionally have parameters during a broadcast.
| CHSM::event::event | ( | CHSM_EVENT_ARGS | ) |
Construct an event.
|
virtual |
Destroy an event.
|
inline |
Checks whether this event is of a particular event type.
This function is a convenient shorthand.
| EventClass | The event class's type. |
true only if this event is of the given type.
|
inline |
Returns the name of this event.
|
inline |
Broadcast an event to a machine.
If it has a precondition, it will be evaluated first. Actions may be performed and transitions may occur.
1.8.3.1