Template Class stub_sensor

Inheritance Relationships

Base Type

  • public chal::sensors::base_sensor< std::nullptr_t >

Class Documentation

template<typename TReadingType>
class stub_sensor : public chal::sensors::base_sensor<std::nullptr_t>

Stub sensor class to make things compile when a sensor is disabled.

Public Types

using impl_type = std::nullptr_t

Public Functions

stub_sensor(const stub_sensor&) = default
inline explicit stub_sensor(std::nullptr_t &&sensor)
stub_sensor(stub_sensor&&) = default
stub_sensor(void) = default
virtual ~stub_sensor(void) = default
inline void disable(void) override
inline void enable(void) override
inline bool is_enabled(void) const override
stub_sensor &operator=(const stub_sensor&) = default
stub_sensor &operator=(stub_sensor&&) = default
inline TReadingType readings(void) const
inline void reset(void) override