SObjectizer 5.8
Loading...
Searching...
No Matches
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" };
...
};
A base class for agents.
Definition agent.hpp:673
so_5::substate_of substate_of
Short alias for so_5::substate_of.
Definition agent.hpp:724
so_5::state_t state_t
Short alias for so_5::state_t.
Definition agent.hpp:698
Class for the representing agent state.
Definition state.hpp:148
@ shutting_down
Demand has not been extracted because of shutdown.
@ active
Timer is activated.
Helper for marking initial substate of composite state.
Definition state.hpp:57
Note
A composite state can have any number of substates but only one of them must be marked as initial substate.

Definition at line 88 of file state.hpp.

Constructor & Destructor Documentation

◆ substate_of()

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

Definition at line 92 of file state.hpp.

Member Data Documentation

◆ m_parent_state

state_t* so_5::substate_of::m_parent_state

Definition at line 90 of file state.hpp.


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