geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <DifferenceSignal.hpp>
Public Member Functions | |
DifferenceSignal (std::shared_ptr< Signal > minuend, std::shared_ptr< Signal > subtrahend) | |
DifferenceSignal (const DifferenceSignal &other)=delete | |
DifferenceSignal & | operator= (const DifferenceSignal &other)=delete |
virtual | ~DifferenceSignal ()=default |
void | setup_batch (void) override |
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. More... | |
double | sample (void) override |
Apply any conversions necessary to interpret the latest stored value as a double. More... | |
double | read (void) const override |
Read directly the value of the signal without affecting any pushed batch signals. More... | |
Public Member Functions inherited from geopm::Signal | |
virtual | ~Signal ()=default |
virtual void | set_sample (double) |
Set the value to be returned by sample() More... | |
virtual bool | is_sampled (void) const |
True if the signal has been sampled during this batch. More... | |
A composite signal used by an IOGroup to produce a signal as the difference of two signals.
geopm::DifferenceSignal::DifferenceSignal | ( | std::shared_ptr< Signal > | minuend, |
std::shared_ptr< Signal > | subtrahend | ||
) |
|
delete |
|
virtualdefault |
|
delete |
|
overridevirtual |
Read directly the value of the signal without affecting any pushed batch signals.
Implements geopm::Signal.
|
overridevirtual |
Apply any conversions necessary to interpret the latest stored value as a double.
Implements geopm::Signal.
|
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.