6 #ifndef DIFFERENCESIGNAL_HPP_INCLUDE
7 #define DIFFERENCESIGNAL_HPP_INCLUDE
21 std::shared_ptr<Signal> subtrahend);
26 double sample(
void)
override;
27 double read(
void)
const override;
29 std::shared_ptr<Signal> m_minuend;
30 std::shared_ptr<Signal> m_subtrahend;
31 bool m_is_batch_ready;
Definition: DifferenceSignal.hpp:18
virtual ~DifferenceSignal()=default
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition: DifferenceSignal.cpp:43
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition: DifferenceSignal.cpp:34
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition: DifferenceSignal.cpp:25
DifferenceSignal & operator=(const DifferenceSignal &other)=delete
DifferenceSignal(const DifferenceSignal &other)=delete
DifferenceSignal(std::shared_ptr< Signal > minuend, std::shared_ptr< Signal > subtrahend)
Definition: DifferenceSignal.cpp:15
Definition: Signal.hpp:16