Searched refs:PresenceSensor (Results 1 – 17 of 17) sorted by relevance
/openbmc/phosphor-fan-presence/presence/ |
H A D | psensor.hpp | 23 class PresenceSensor class 26 PresenceSensor(const PresenceSensor&) = default; 27 PresenceSensor& operator=(const PresenceSensor&) = default; 28 PresenceSensor(PresenceSensor&&) = default; 29 PresenceSensor& operator=(PresenceSensor&&) = default; 30 virtual ~PresenceSensor() = default; 31 PresenceSensor() : id(nextId) in PresenceSensor() function in phosphor::fan::presence::PresenceSensor 79 friend bool operator==(const PresenceSensor& l, const PresenceSensor& r); 96 inline bool operator==(const PresenceSensor& l, const PresenceSensor& r) in operator ==()
|
H A D | fallback.hpp | 16 class PresenceSensor; 45 const std::vector<std::reference_wrapper<PresenceSensor>>& s, in Fallback() 59 const std::vector<std::reference_wrapper<PresenceSensor>>& s) : in Fallback() 73 void stateChanged(bool present, PresenceSensor& /*sensor*/) override; 84 std::vector<std::reference_wrapper<PresenceSensor>> sensors;
|
H A D | anyof.hpp | 19 class PresenceSensor; 47 const std::vector<std::reference_wrapper<PresenceSensor>>& s, 57 const std::vector<std::reference_wrapper<PresenceSensor>>& s) : in AnyOf() 71 void stateChanged(bool present, PresenceSensor& sensor) override; 137 std::vector<std::tuple<std::reference_wrapper<PresenceSensor>, bool, bool>>
|
H A D | json_parser.hpp | 34 using fanPolicy = std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>; 38 std::function<std::unique_ptr<PresenceSensor>(size_t, const json&)>; 148 std::unique_ptr<PresenceSensor> getTach(size_t fanIndex, const json& method); 158 std::unique_ptr<PresenceSensor> getGpio(size_t fanIndex, const json& method);
|
H A D | gpio.hpp | 25 class Gpio : public PresenceSensor 122 class NullGpio : public PresenceSensor
|
H A D | rpolicy.hpp | 13 class PresenceSensor; 56 virtual void stateChanged(bool present, PresenceSensor& sensor) = 0;
|
H A D | error_reporter.hpp | 14 class PresenceSensor; 47 Fan, std::vector<std::unique_ptr<PresenceSensor>>>>& fans);
|
H A D | json_parser.cpp | 125 std::vector<std::unique_ptr<PresenceSensor>> sensors; in process() 265 std::unique_ptr<PresenceSensor> getTach(size_t fanIndex, const json& method) in getTach() 286 std::unique_ptr<PresenceSensor> getGpio(size_t fanIndex, const json& method) in getGpio() 355 std::vector<std::reference_wrapper<PresenceSensor>> pSensors; in getAnyof() 369 std::vector<std::reference_wrapper<PresenceSensor>> pSensors; in getFallback()
|
H A D | psensor.cpp | 24 std::size_t PresenceSensor::nextId = 1;
|
H A D | anyof.cpp | 37 const std::vector<std::reference_wrapper<PresenceSensor>>& s, in AnyOf() 62 void AnyOf::stateChanged(bool present, PresenceSensor& sensor) in stateChanged()
|
H A D | tach.hpp | 27 class Tach : public PresenceSensor
|
H A D | fallback.cpp | 33 void Fallback::stateChanged(bool present, PresenceSensor& /*sensor*/) in stateChanged() argument
|
H A D | error_reporter.cpp | 49 std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>>& fans) : in ErrorReporter()
|
/openbmc/phosphor-fan-presence/presence/test/ |
H A D | fallbacktest.cpp | 30 class TestSensor : public PresenceSensor 74 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts}; in TEST() 107 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST() 153 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST() 192 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST() 225 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST()
|
/openbmc/phosphor-fan-presence/presence/templates/ |
H A D | fallback.mako.hpp | 3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
|
H A D | anyof.mako.hpp | 3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
|
H A D | generated.mako.hpp | 28 using Sensors = std::array<std::unique_ptr<PresenceSensor>, ${len(sensors)}>;
|