Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
trigger_out.h
1#ifndef TRIGGER_OUT_H
2#define TRIGGER_OUT_H
3
4#include "./notifier.h"
5
6namespace ara
7{
8 namespace sm
9 {
12 template <typename T>
14 {
15 private:
16 Notifier<T> mNotifier;
17
18 public:
21 explicit TriggerOut(T &state) : mNotifier(state)
22 {
23 }
24
25 TriggerOut() = delete;
26 ~TriggerOut() noexcept = default;
27 TriggerOut(const TriggerOut &) = delete;
28 TriggerOut(TriggerOut &&) = delete;
29 TriggerOut &operator=(const TriggerOut &) = delete;
30 TriggerOut &operator=(TriggerOut &&) = delete;
31
34 Notifier<T> &GetNotifier() noexcept
35 {
36 return mNotifier;
37 }
38 };
39 }
40}
41
42#endif
State changing notifier wrapper.
Definition: notifier.h:20
State output trigger.
Definition: trigger_out.h:14
TriggerOut(T &state)
Constructor.
Definition: trigger_out.h:21
Notifier< T > & GetNotifier() noexcept
Notifier property getter.
Definition: trigger_out.h:34