23 #ifndef TRIGGER_AND_H_
24 #define TRIGGER_AND_H_
26 #include <unordered_map>
73 template<
class Caller,
typename InputType =
int>
82 typedef void(Caller::*
Action)(
bool newstate);
87 inline
bool state() const noexcept
93 bool getState(InputType in)
const noexcept;
94 bool commit(InputType in,
bool state);
96 void add(InputType in,
bool state);
97 void remove(InputType in);
99 typedef std::unordered_map<InputType, bool> InputMap;
101 inline typename InputMap::const_iterator begin() noexcept
103 return inputs.begin();
106 inline typename InputMap::const_iterator end() noexcept
122 #include "TriggerAND.tcc"