SObjectizer  5.5
Public Member Functions | Public Attributes | List of all members
so_5::substate_of Struct Reference

Helper for marking a substate of composite state. More...

#include <state.hpp>

Public Member Functions

 substate_of (state_t &parent_state)
 

Public Attributes

state_tm_parent_state
 

Detailed Description

Helper for marking a substate of composite state.

Since
v.5.5.15

Usage example:

class demo : public so_5::agent_t
{
state_t active{ *this, "active" };
state_t wait_input{ initial_substate_of{ active }, "wait_input" };
state_t dialog{ substate_of{ active }, "dialog" };
state_t shutting_down{ substate_of{ active }, "shutdown" };
...
};
Note
A composite state can have any number of substates but only one of them must be marked as initial substate.

Constructor & Destructor Documentation

◆ substate_of()

so_5::substate_of::substate_of ( state_t parent_state)
inline

Member Data Documentation

◆ m_parent_state

state_t* so_5::substate_of::m_parent_state

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