infinite_state_machine 1.0.0
Infinite State Machine Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
infinite::state_machine< Topology >::transition Struct Reference

A struct representing the states exited and entered during a transition. More...

#include <infinite_state_machine.hpp>

Public Attributes

std::deque< state< Topology > * > exits
 The states that were exited during the transition.
 
std::deque< state< Topology > * > enters
 The states that were entered during the transition.
 

Detailed Description

template<typename Topology>
struct infinite::state_machine< Topology >::transition

A struct representing the states exited and entered during a transition.

This struct holds the states that were exited and entered during a transition, allowing for easy access to this information after a transition completes. They appear in the correct order. Run all the exit handlers for the exited states from back to front, then run all the entry handlers for the entered states similarly.

Definition at line 62 of file infinite_state_machine.hpp.

Member Data Documentation

◆ enters

template<typename Topology >
std::deque<state<Topology> *> infinite::state_machine< Topology >::transition::enters

The states that were entered during the transition.

This deque contains pointers to the states that were entered, in the order they were entered.

Definition at line 70 of file infinite_state_machine.hpp.

◆ exits

template<typename Topology >
std::deque<state<Topology> *> infinite::state_machine< Topology >::transition::exits

The states that were exited during the transition.

This deque contains pointers to the states that were exited, in the order they were exited.

Definition at line 66 of file infinite_state_machine.hpp.


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