Skip to content

Commit

Permalink
Updated the StoreAndForwardEvent() method to return the reference to …
Browse files Browse the repository at this point in the history
…the state to make method call composition convenient.
  • Loading branch information
laszlo-kiss committed Feb 10, 2017
1 parent 09494ca commit dcaa46b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FSM/FiniteStateMachine.hh
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,9 @@ namespace Core
*
* @param event The event that is to be stored and forwarded to the next state.
* @param eset The state transition events that forward the event.
* @return The reference to this State object.
*/
virtual void StoreAndForwardEvent(
virtual State & StoreAndForwardEvent(
const Event & event,
const EventSet & eset
)
Expand All @@ -363,6 +364,7 @@ namespace Core
storeforward_table[eit] = eset;
}
}
return *this;
}

/**
Expand Down

0 comments on commit dcaa46b

Please sign in to comment.