ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Test::fsm Struct Reference
+ Inheritance diagram for Acts::Test::fsm:
+ Collaboration diagram for Acts::Test::fsm:

Public Member Functions

 fsm ()
 
event_return on_event (const states::Disconnected &, const events::Connect &)
 
event_return on_event (const states::Connecting &, const events::Established &)
 
event_return on_event (const states::Connected &, const events::Ping &)
 
event_return on_event (const states::Pinging &, const events::Pong &)
 
event_return on_event (const states::Connected &, const events::Timeout &)
 
event_return on_event (const states::Connected &, const events::Disconnect &)
 
template<typename State , typename Event >
event_return on_event (const State &, const Event &) const
 
template<typename State , typename... Args>
void on_enter (const State &, Args &&...)
 
template<typename State , typename... Args>
void on_exit (const State &, Args &&...)
 
template<typename... Args>
void on_process (Args &&...)
 
- Public Member Functions inherited from Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >
 FiniteStateMachine ()
 
 FiniteStateMachine (StateVariant state)
 
const StateVariantgetState () const noexcept
 
void setState (State state, Args &&...args)
 
bool is (const S &) const noexcept
 
bool is () const noexcept
 
bool terminated () const noexcept
 
void dispatch (Event &&event, Args &&...args)
 

Additional Inherited Members

- Public Types inherited from Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >
using StateVariant = std::variant< Terminated, States...>
 
- Protected Types inherited from Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >
using fsm_base = FiniteStateMachine< fsm, States...>
 
using event_return = std::optional< StateVariant >
 
- Protected Member Functions inherited from Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >
event_return process_event (Event &&event, Args &&...args)
 

Detailed Description

Definition at line 38 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 38 of file FiniteStateMachineTests.cpp

Constructor & Destructor Documentation

Acts::Test::fsm::fsm ( )
inline

Definition at line 40 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 40 of file FiniteStateMachineTests.cpp

Member Function Documentation

template<typename State , typename... Args>
void Acts::Test::fsm::on_enter ( const State ,
Args &&  ... 
)
inline

Definition at line 75 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 75 of file FiniteStateMachineTests.cpp

event_return Acts::Test::fsm::on_event ( const states::Disconnected ,
const events::Connect  
)
inline

Definition at line 42 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 42 of file FiniteStateMachineTests.cpp

event_return Acts::Test::fsm::on_event ( const states::Connecting ,
const events::Established  
)
inline

Definition at line 46 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 46 of file FiniteStateMachineTests.cpp

event_return Acts::Test::fsm::on_event ( const states::Connected ,
const events::Ping  
)
inline

Definition at line 50 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 50 of file FiniteStateMachineTests.cpp

References Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >::process_event(), and Acts::FiniteStateMachine< fsm, states::Disconnected, states::Connecting, states::Pinging, states::Connected >::setState().

+ Here is the call graph for this function:

event_return Acts::Test::fsm::on_event ( const states::Pinging ,
const events::Pong  
)
inline

Definition at line 56 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 56 of file FiniteStateMachineTests.cpp

event_return Acts::Test::fsm::on_event ( const states::Connected ,
const events::Timeout  
)
inline

Definition at line 61 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 61 of file FiniteStateMachineTests.cpp

event_return Acts::Test::fsm::on_event ( const states::Connected ,
const events::Disconnect  
)
inline

Definition at line 65 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 65 of file FiniteStateMachineTests.cpp

template<typename State , typename Event >
event_return Acts::Test::fsm::on_event ( const State ,
const Event  
) const
inline

Definition at line 70 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 70 of file FiniteStateMachineTests.cpp

template<typename State , typename... Args>
void Acts::Test::fsm::on_exit ( const State ,
Args &&  ... 
)
inline

Definition at line 78 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 78 of file FiniteStateMachineTests.cpp

template<typename... Args>
void Acts::Test::fsm::on_process ( Args &&  ...)
inline

Definition at line 81 of file FiniteStateMachineTests.cpp.

View newest version in sPHENIX GitHub at line 81 of file FiniteStateMachineTests.cpp


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