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

Public Member Functions

 fsm2 ()
 
event_return on_event (const states::Disconnected &, const events::Connect &, double f)
 
event_return on_event (const states::Connected &, const events::Disconnect &)
 
template<typename State , typename Event , typename... Args>
event_return on_event (const State &, const Event &, Args &&...) const
 
template<typename... Args>
void on_enter (const Terminated &, Args &&...)
 
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< fsm2, states::Disconnected, 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< fsm2, states::Disconnected, states::Connected >
using StateVariant = std::variant< Terminated, States...>
 
- Protected Types inherited from Acts::FiniteStateMachine< fsm2, states::Disconnected, states::Connected >
using fsm_base = FiniteStateMachine< fsm2, States...>
 
using event_return = std::optional< StateVariant >
 
- Protected Member Functions inherited from Acts::FiniteStateMachine< fsm2, states::Disconnected, states::Connected >
event_return process_event (Event &&event, Args &&...args)
 

Detailed Description

Definition at line 114 of file FiniteStateMachineTests.cpp.

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

Constructor & Destructor Documentation

Acts::Test::fsm2::fsm2 ( )
inline

Definition at line 116 of file FiniteStateMachineTests.cpp.

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

Member Function Documentation

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

Definition at line 135 of file FiniteStateMachineTests.cpp.

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

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

Definition at line 140 of file FiniteStateMachineTests.cpp.

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

event_return Acts::Test::fsm2::on_event ( const states::Disconnected ,
const events::Connect ,
double  f 
)
inline

Definition at line 118 of file FiniteStateMachineTests.cpp.

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

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

Definition at line 124 of file FiniteStateMachineTests.cpp.

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

template<typename State , typename Event , typename... Args>
event_return Acts::Test::fsm2::on_event ( const State ,
const Event ,
Args &&  ... 
) const
inline

Definition at line 130 of file FiniteStateMachineTests.cpp.

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

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

Definition at line 143 of file FiniteStateMachineTests.cpp.

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

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

Definition at line 145 of file FiniteStateMachineTests.cpp.

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


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