Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::sm::Trigger< T > Class Template Reference

State changing trigger wrapper. More...

#include <trigger.h>

Public Member Functions

 Trigger (T &state, TriggerHandler handler)
 Constructor. More...
 
 Trigger (const Trigger &)=delete
 
 Trigger (Trigger &&)=delete
 
Triggeroperator= (const Trigger &)=delete
 
Triggeroperator= (Trigger &&)=delete
 
void Write (T state)
 Write into the trigger. More...
 

Detailed Description

template<typename T>
class ara::sm::Trigger< T >

State changing trigger wrapper.

Template Parameters
TState type

Constructor & Destructor Documentation

◆ Trigger()

template<typename T >
ara::sm::Trigger< T >::Trigger ( T &  state,
TriggerHandler  handler 
)
inline

Constructor.

Parameters
stateState
handlerHandler to be invoked after state change

Member Function Documentation

◆ Write()

template<typename T >
void ara::sm::Trigger< T >::Write ( state)
inline

Write into the trigger.

Parameters
stateNew state