Home
last modified time | relevance | path

Searched refs:PresenceSensor (Results 1 – 17 of 17) sorted by relevance

/openbmc/phosphor-fan-presence/presence/
H A Dpsensor.hpp23 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 Dfallback.hpp16 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 Danyof.hpp19 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 Djson_parser.hpp34 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 Dgpio.hpp25 class Gpio : public PresenceSensor
122 class NullGpio : public PresenceSensor
H A Drpolicy.hpp13 class PresenceSensor;
56 virtual void stateChanged(bool present, PresenceSensor& sensor) = 0;
H A Derror_reporter.hpp14 class PresenceSensor;
47 Fan, std::vector<std::unique_ptr<PresenceSensor>>>>& fans);
H A Djson_parser.cpp125 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 Dpsensor.cpp24 std::size_t PresenceSensor::nextId = 1;
H A Danyof.cpp37 const std::vector<std::reference_wrapper<PresenceSensor>>& s, in AnyOf()
62 void AnyOf::stateChanged(bool present, PresenceSensor& sensor) in stateChanged()
H A Dtach.hpp27 class Tach : public PresenceSensor
H A Dfallback.cpp33 void Fallback::stateChanged(bool present, PresenceSensor& /*sensor*/) in stateChanged() argument
H A Derror_reporter.cpp49 std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>>& fans) : in ErrorReporter()
/openbmc/phosphor-fan-presence/presence/test/
H A Dfallbacktest.cpp30 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 Dfallback.mako.hpp3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
H A Danyof.mako.hpp3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
H A Dgenerated.mako.hpp28 using Sensors = std::array<std::unique_ptr<PresenceSensor>, ${len(sensors)}>;