tsm 0.1.0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
SwitchHsmContextWithActions Struct Reference
Collaboration diagram for SwitchHsmContextWithActions:
Collaboration graph

Classes

struct  Off
 
struct  On
 
struct  Toggle
 

Public Types

using transitions = std::tuple< Transition< Off, Toggle, On, &SwitchHsmContextWithActions::onTurnOn, &SwitchHsmContextWithActions::canTurnOn >, Transition< On, Toggle, Off > >
 

Public Member Functions

bool canTurnOn ()
 
void onTurnOn ()
 
int on_count () const
 

Static Public Member Functions

static bool canTurnOnGuard (SwitchHsmContextWithActions &ctx)
 
static void onTurnOnAction (SwitchHsmContextWithActions &ctx)
 

Member Typedef Documentation

◆ transitions

Member Function Documentation

◆ canTurnOn()

bool SwitchHsmContextWithActions::canTurnOn ( )
inline

◆ canTurnOnGuard()

static bool SwitchHsmContextWithActions::canTurnOnGuard ( SwitchHsmContextWithActions ctx)
inlinestatic

◆ on_count()

int SwitchHsmContextWithActions::on_count ( ) const
inline

◆ onTurnOn()

void SwitchHsmContextWithActions::onTurnOn ( )
inline

◆ onTurnOnAction()

static void SwitchHsmContextWithActions::onTurnOnAction ( SwitchHsmContextWithActions ctx)
inlinestatic

The documentation for this struct was generated from the following file: