@@ -440,7 +440,7 @@ namespace Core
440
440
*
441
441
* @return The default handler function object.
442
442
*/
443
- virtual EventHandler DefaultEventHandler ()
443
+ virtual EventHandler DefaultEventHandler () const
444
444
{
445
445
return default_handler;
446
446
}
@@ -496,7 +496,7 @@ namespace Core
496
496
/* *
497
497
* Checks whether the event store of the state is empty.
498
498
*/
499
- inline bool IsEventStoreEmpty () { return event_store.empty (); }
499
+ inline bool IsEventStoreEmpty () const { return event_store.empty (); }
500
500
501
501
502
502
/* *
@@ -629,7 +629,6 @@ namespace Core
629
629
FiniteStateMachine ()
630
630
: previous_state( SentinelStateID )
631
631
, current_state( SentinelStateID )
632
- , blocking( false )
633
632
, default_handler( nullptr )
634
633
, state_transfer_event( 0 )
635
634
{ }
@@ -747,7 +746,7 @@ namespace Core
747
746
*/
748
747
bool IsDirectTransition (
749
748
const Event & event
750
- )
749
+ ) const
751
750
{
752
751
return (EventNumber) event >= state_transfer_event;
753
752
}
@@ -1048,7 +1047,7 @@ namespace Core
1048
1047
/* *
1049
1048
* @return true if the FSM is blocking conditional events, false otherwise.
1050
1049
*/
1051
- inline bool IsBlocking () { return not block_cleared_in.empty (); }
1050
+ inline bool IsBlocking () const { return not block_cleared_in.empty (); }
1052
1051
1053
1052
1054
1053
private :
@@ -1132,7 +1131,7 @@ namespace Core
1132
1131
{
1133
1132
if ( IsBlocking () )
1134
1133
{
1135
- auto where = block_cleared_in.find ( CurrentState () )
1134
+ auto where = block_cleared_in.find ( CurrentState () );
1136
1135
if ( where != block_cleared_in.end () ) { block_cleared_in.clear (); }
1137
1136
}
1138
1137
on_entry ( event );
0 commit comments