6 #ifndef MULTIPLICATIONSIGNAL_HPP_INCLUDE
7 #define MULTIPLICATIONSIGNAL_HPP_INCLUDE
26 double sample(
void)
override;
27 double read(
void)
const override;
29 std::shared_ptr<Signal> m_multiplier;
30 double m_multiplicand;
31 bool m_is_batch_ready;
A composite signal used by an IOGroup to produce a signal as the Multiplication of one signal and a d...
Definition: MultiplicationSignal.hpp:18
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition: MultiplicationSignal.cpp:42
MultiplicationSignal(const MultiplicationSignal &other)=delete
virtual ~MultiplicationSignal()=default
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition: MultiplicationSignal.cpp:25
MultiplicationSignal(std::shared_ptr< Signal > multiplier, double multiplicand)
Definition: MultiplicationSignal.cpp:15
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition: MultiplicationSignal.cpp:33
MultiplicationSignal & operator=(const MultiplicationSignal &other)=delete
Definition: Signal.hpp:16