|
SMACC2
|
Namespaces | |
| namespace | client_bases |
| namespace | client_behaviors |
| namespace | client_core_components |
| namespace | default_events |
| namespace | default_transition_tags |
| namespace | event_generators |
| namespace | introspection |
| namespace | state_reactors |
| namespace | utils |
Classes | |
| struct | AddTEventTypeStateReactor |
| struct | AddTEventTypeStateReactorInfo |
| class | CallbackCounterSemaphore |
| class | CbServiceServerCallbackBase |
| class | ClientHandler |
| struct | ComponentKey |
| struct | EvCbFailure |
| struct | EvCbFinished |
| struct | EvCbSuccess |
| class | HasSpecificNamedOnExit |
| class | HasStandardOnExit |
| class | ISmaccClient |
| class | ISmaccClientBehavior |
| class | ISmaccComponent |
| class | ISmaccOrthogonal |
| class | ISmaccState |
| class | ISmaccStateMachine |
| class | ISmaccUpdatable |
| class | Orthogonal |
| class | SignalDetector |
| class | SmaccAsyncClientBehavior |
| class | SmaccClientBehavior |
| class | SmaccEventGenerator |
| class | SmaccSignal |
| class | SmaccState |
| struct | SmaccStateMachineBase |
| State Machine. More... | |
| struct | SmExecution |
| class | StateReactor |
| class | Transition |
Typedefs | |
| template<class T > | |
| using | deep_history = sc::deep_history<T> |
Enumerations | |
| enum class | SMRunMode { DEBUG , RELEASE } |
| enum class | ComponentRequirement { SOFT , HARD } |
| enum class | ExecutionModel { SINGLE_THREAD_SPINNER , MULTI_THREAD_SPINNER } |
| enum class | EventLifeTime { ABSOLUTE , CURRENT_STATE } |
| enum class | StateMachineInternalAction { STATE_CONFIGURING , STATE_ENTERING , STATE_RUNNING , STATE_EXITING , TRANSITIONING } |
Functions | |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &st, TTransitionTagName tn, std::true_type) |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &, TTransitionTagName, std::false_type) |
| template<typename TState , typename TTransitionTagName > | |
| void | specificNamedOnExit (TState &m, TTransitionTagName tn) |
| template<typename TState > | |
| void | standardOnExit (TState &st, std::true_type) |
| template<typename TState > | |
| void | standardOnExit (TState &, std::false_type) |
| template<typename TState > | |
| void | standardOnExit (TState &m) |
| void | onSigQuit (int sig) |
| void | onSignalShutdown (int sig) |
| template<typename StateMachineType > | |
| void | run (ExecutionModel executionModel=ExecutionModel::SINGLE_THREAD_SPINNER) |
| template<typename StateMachineType > | |
| SmExecution * | run_async () |
Variables | |
| std::atomic< bool > | g_shutdown_requested {false} |
| SignalDetector * | g_signal_detector = nullptr |
| using smacc2::deep_history = sc::deep_history<T> |
Definition at line 54 of file common.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| ABSOLUTE | |
| CURRENT_STATE | |
Definition at line 46 of file smacc_state_machine.hpp.
|
strong |
| Enumerator | |
|---|---|
| SINGLE_THREAD_SPINNER | |
| MULTI_THREAD_SPINNER | |
Definition at line 29 of file smacc_signal_detector.hpp.
|
strong |
| Enumerator | |
|---|---|
| DEBUG | |
| RELEASE | |
Definition at line 68 of file common.hpp.
|
strong |
| Enumerator | |
|---|---|
| STATE_CONFIGURING | |
| STATE_ENTERING | |
| STATE_RUNNING | |
| STATE_EXITING | |
| TRANSITIONING | |
Definition at line 52 of file smacc_state_machine.hpp.
| void smacc2::onSignalShutdown | ( | int | sig | ) |
Definition at line 389 of file signal_detector.cpp.
References g_shutdown_requested, g_signal_detector, and smacc2::SignalDetector::stop().
Referenced by run(), and run_async().


| void smacc2::onSigQuit | ( | int | sig | ) |
Definition at line 410 of file signal_detector.cpp.
Referenced by run(), and run_async().

| void smacc2::run | ( | ExecutionModel | executionModel = ExecutionModel::SINGLE_THREAD_SPINNER | ) |
Definition at line 124 of file smacc_signal_detector.hpp.
References g_signal_detector, onSignalShutdown(), onSigQuit(), smacc2::SignalDetector::pollingLoop(), smacc2::SignalDetector::setProcessorHandle(), and smacc2::SignalDetector::terminateScheduler().
Referenced by smacc2::SmaccStateMachineBase< DerivedStateMachine, InitialStateType >::reset().


| SmExecution * smacc2::run_async | ( | ) |
Definition at line 179 of file smacc_signal_detector.hpp.
References g_signal_detector, onSignalShutdown(), onSigQuit(), smacc2::SignalDetector::pollingLoop(), smacc2::SmExecution::scheduler1, smacc2::SmExecution::schedulerThread, smacc2::SignalDetector::setProcessorHandle(), smacc2::SmExecution::signalDetector, smacc2::SmExecution::signalDetectorLoop, and smacc2::SmExecution::sm.

| void smacc2::specificNamedOnExit | ( | TState & | , |
| TTransitionTagName | , | ||
| std::false_type | ) |
Definition at line 50 of file state_traits.hpp.
| void smacc2::specificNamedOnExit | ( | TState & | m, |
| TTransitionTagName | tn ) |
Definition at line 55 of file state_traits.hpp.
References specificNamedOnExit().

| void smacc2::specificNamedOnExit | ( | TState & | st, |
| TTransitionTagName | tn, | ||
| std::true_type | ) |
Definition at line 44 of file state_traits.hpp.
Referenced by smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_with_action(), smacc2::Transition< Event, Destination, Tag, TransitionContext, pTransitionAction >::reactions< State >::react_without_action(), and specificNamedOnExit().

| void smacc2::standardOnExit | ( | TState & | , |
| std::false_type | ) |
Definition at line 89 of file state_traits.hpp.
| void smacc2::standardOnExit | ( | TState & | m | ) |
Definition at line 94 of file state_traits.hpp.
References standardOnExit().

| void smacc2::standardOnExit | ( | TState & | st, |
| std::true_type | ) |
Definition at line 83 of file state_traits.hpp.
Referenced by smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::exit(), and standardOnExit().

| std::atomic< bool > smacc2::g_shutdown_requested {false} |
| SignalDetector * smacc2::g_signal_detector = nullptr |
Definition at line 42 of file signal_detector.cpp.
Referenced by onSignalShutdown(), run(), and run_async().