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 | |
Trigger & | operator= (const Trigger &)=delete |
Trigger & | operator= (Trigger &&)=delete |
void | Write (T state) |
Write into the trigger. More... | |
State changing trigger wrapper.
T | State type |
|
inline |
Constructor.
state | State |
handler | Handler to be invoked after state change |
|
inline |
Write into the trigger.
state | New state |