A composite signal used by an IOGroup to produce a signal as the Multiplication of one signal and a double.
More...
#include <MultiplicationSignal.hpp>
A composite signal used by an IOGroup to produce a signal as the Multiplication of one signal and a double.
◆ MultiplicationSignal() [1/2]
geopm::MultiplicationSignal::MultiplicationSignal |
( |
std::shared_ptr< Signal > |
multiplier, |
|
|
double |
multiplicand |
|
) |
| |
◆ MultiplicationSignal() [2/2]
◆ ~MultiplicationSignal()
virtual geopm::MultiplicationSignal::~MultiplicationSignal |
( |
| ) |
|
|
virtualdefault |
◆ operator=()
◆ read()
double geopm::MultiplicationSignal::read |
( |
void |
| ) |
const |
|
overridevirtual |
Read directly the value of the signal without affecting any pushed batch signals.
Implements geopm::Signal.
◆ sample()
double geopm::MultiplicationSignal::sample |
( |
void |
| ) |
|
|
overridevirtual |
Apply any conversions necessary to interpret the latest stored value as a double.
Implements geopm::Signal.
◆ setup_batch()
void geopm::MultiplicationSignal::setup_batch |
( |
void |
| ) |
|
|
overridevirtual |
Prepare the signal for being updated through side effects by the owner's read_batch step. This method should not fail if called multiple times, and ideally only apply the side effects on the first call.
Implements geopm::Signal.
The documentation for this class was generated from the following files: