geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <Control.hpp>
Public Member Functions | |
virtual | ~Control ()=default |
virtual void | setup_batch (void)=0 |
Prepare the control for being written through side effects by the owner's write_batch step. This method should not fail if called multiple times, and ideally only apply the side effects on the first call. More... | |
virtual void | adjust (double value)=0 |
Store values to be written by the owner's write_batch step. More... | |
virtual void | write (double value)=0 |
Write the value of the control without affecting any pushed batch controls. More... | |
virtual void | save (void)=0 |
Store the current setting of the control for use by a future call to restore(). More... | |
virtual void | restore (void)=0 |
Restore the setting stored by save(). More... | |
An abstract interface for all types of controls supported by an IOGroup. Any implementation specific data should be injected in the derived class constructor and used in setup_batch() if necessary.
|
virtualdefault |
|
pure virtual |
Store values to be written by the owner's write_batch step.
Implemented in geopm::SSTControl, geopm::MSRFieldControl, and geopm::DomainControl.
|
pure virtual |
Restore the setting stored by save().
Implemented in geopm::SSTControl, geopm::MSRFieldControl, and geopm::DomainControl.
|
pure virtual |
Store the current setting of the control for use by a future call to restore().
Implemented in geopm::SSTControl, geopm::MSRFieldControl, and geopm::DomainControl.
|
pure virtual |
Prepare the control for being written through side effects by the owner's write_batch step. This method should not fail if called multiple times, and ideally only apply the side effects on the first call.
Implemented in geopm::SSTControl, geopm::MSRFieldControl, and geopm::DomainControl.
|
pure virtual |
Write the value of the control without affecting any pushed batch controls.
Implemented in geopm::SSTControl, geopm::MSRFieldControl, and geopm::DomainControl.