| * @brief AnyOf redundancy policy. |
| * The any of redundancy policy monitors all sensor |
| * states in the redundancy set and reports true when any |
| * sensor in the set reports true. |
| class AnyOf : public RedundancyPolicy |
| AnyOf(const AnyOf&) = default; |
| AnyOf& operator=(const AnyOf&) = default; |
| AnyOf(AnyOf&&) = default; |
| AnyOf& operator=(AnyOf&&) = default; |
| * @brief Construct an any of bitwise policy. |
| * @param[in] fan - The fan associated with the policy. |
| * @param[in] s - The set of sensors associated with the policy. |
| const std::vector<std::reference_wrapper<PresenceSensor>>& s); |
| * Update the inventory and execute the fallback |
| * @param[in] present - The new presence state according |
| * to the specified sensor. |
| * @param[in] sensor - The sensor reporting the new state. |
| void stateChanged(bool present, PresenceSensor& sensor) override; |
| * Start monitoring the fan. |
| /** @brief All presence sensors in the redundancy set. */ |
| std::reference_wrapper<PresenceSensor>, |