infinite_state_machine 1.0.0
Infinite State Machine Library
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
infinite::state< Topology > Struct Template Reference

A default abstract state representation. More...

#include <infinite_state_machine.hpp>

Public Types

using topology_ptr = Topology *
 Pointer type for the topology.
 

Public Member Functions

topology_ptr self ()
 Returns a pointer to the current state.
 

Public Attributes

topology_ptr super
 Pointer to the super-state.
 

Detailed Description

template<typename Topology>
struct infinite::state< Topology >

A default abstract state representation.

This struct serves as a base for all states in the state machine, unless otherwise overridden by a derived class.

Definition at line 24 of file infinite_state_machine.hpp.

Member Typedef Documentation

◆ topology_ptr

template<typename Topology >
using infinite::state< Topology >::topology_ptr = Topology *

Pointer type for the topology.

This type represents a pointer to the topology, allowing for easy navigation and access to the topology's members.

Definition at line 28 of file infinite_state_machine.hpp.

Member Function Documentation

◆ self()

template<typename Topology >
topology_ptr infinite::state< Topology >::self ( )
inline

Returns a pointer to the current state.

This method provides access to the current state instance, facilitating state management and transitions.

Returns
A pointer to the current state.

Definition at line 37 of file infinite_state_machine.hpp.

Member Data Documentation

◆ super

template<typename Topology >
topology_ptr infinite::state< Topology >::super

Pointer to the super-state.

This pointer links to the parent state in the hierarchy, enabling nested state structures.

Definition at line 32 of file infinite_state_machine.hpp.


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