|
Embedded Template Library 1.0
|
#include <state_chart.h>
Public Types | |
| typedef void | parameter_t |
| typedef state_chart_traits::state_id_t | state_id_t |
| typedef state_chart_traits::event_id_t | event_id_t |
| typedef state_chart_traits::transition< TObject, void > | transition |
| typedef state_chart_traits::state< TObject > | state |
| Public Types inherited from etl::istate_chart< void > | |
| typedef void | parameter_t |
| typedef state_chart_traits::state_id_t | state_id_t |
| typedef state_chart_traits::event_id_t | event_id_t |
Public Member Functions | |
| ETL_CONSTEXPR | state_chart_ct () |
| Constructor. | |
| TObject & | get_object () |
| const TObject & | get_object () const |
| virtual void | start (bool on_entry_initial=true) ETL_OVERRIDE |
| Start the state chart. | |
| virtual void | process_event (event_id_t event_id) ETL_OVERRIDE |
| Public Member Functions inherited from etl::istate_chart< void > | |
| istate_chart (state_id_t initial_state_id) | |
| state_id_t | get_state_id () const |
Additional Inherited Members | |
| Protected Attributes inherited from etl::istate_chart< void > | |
| state_id_t | current_state_id |
| The current state id. | |
Simple Finite State Machine Compile time tables. Event has no parameter.
|
inline |
Gets a const reference to the implementation object.
|
inline |
Gets a const reference to the implementation object.
|
inlinevirtual |
Processes the specified event. The state machine will action the first item in the transition table that satisfies the conditions for executing the action.
| event_id | The id of the event to process. |
Implements etl::istate_chart< void >.
|
inlinevirtual |
Start the state chart.
Implements etl::istate_chart< void >.