1#ifndef TEMPORAL_BINARY_SWITCH_HPP
2#define TEMPORAL_BINARY_SWITCH_HPP
83 bool m_just_switched_on =
false;
84 bool m_just_switched_off =
false;
99 m_just_switched_on =
true;
100 m_just_switched_off =
false;
102 m_just_switched_on =
false;
115 m_just_switched_off =
true;
116 m_just_switched_on =
false;
118 m_just_switched_off =
false;
150 if (m_just_switched_on) {
151 m_just_switched_on =
false;
166 if (m_just_switched_off) {
167 m_just_switched_off =
false;
bool just_switched_off_temporal()
Checks if the switch has just switched off (temporal).
Definition temporal_binary_switch.hpp:165
bool just_switched_off() const
Checks if the switch has just switched off (non-temporal).
Definition temporal_binary_switch.hpp:137
void set_true()
Sets the switch state to true (on).
Definition temporal_binary_switch.hpp:97
bool just_switched_on() const
Checks if the switch has just switched on (non-temporal).
Definition temporal_binary_switch.hpp:129
void set_false()
Sets the switch state to false (off).
Definition temporal_binary_switch.hpp:113
bool just_switched_on_temporal()
Checks if the switch has just switched on (temporal).
Definition temporal_binary_switch.hpp:149
TemporalBinarySwitch()
Default constructor. Initializes the switch to an off state.
Definition temporal_binary_switch.hpp:89