geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::DomainControl Class Reference

#include <DomainControl.hpp>

Inheritance diagram for geopm::DomainControl:
Inheritance graph
[legend]
Collaboration diagram for geopm::DomainControl:
Collaboration graph
[legend]

Public Member Functions

 DomainControl (const std::vector< std::shared_ptr< Control > > &controls)
 
 DomainControl (const DomainControl &other)=delete
 
DomainControloperator= (const DomainControl &other)=delete
 
virtual ~DomainControl ()=default
 
void setup_batch (void) override
 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...
 
void adjust (double value) override
 Store values to be written by the owner's write_batch step. More...
 
void write (double value) override
 Write the value of the control without affecting any pushed batch controls. More...
 
void save (void) override
 Store the current setting of the control for use by a future call to restore(). More...
 
void restore (void) override
 Restore the setting stored by save(). More...
 
std::vector< std::shared_ptr< Control > > controls (void)
 
- Public Member Functions inherited from geopm::Control
virtual ~Control ()=default
 

Constructor & Destructor Documentation

◆ DomainControl() [1/2]

geopm::DomainControl::DomainControl ( const std::vector< std::shared_ptr< Control > > &  controls)

◆ DomainControl() [2/2]

geopm::DomainControl::DomainControl ( const DomainControl other)
delete

◆ ~DomainControl()

virtual geopm::DomainControl::~DomainControl ( )
virtualdefault

Member Function Documentation

◆ adjust()

void geopm::DomainControl::adjust ( double  value)
overridevirtual

Store values to be written by the owner's write_batch step.

Implements geopm::Control.

◆ controls()

std::vector< std::shared_ptr< Control > > geopm::DomainControl::controls ( void  )

◆ operator=()

DomainControl& geopm::DomainControl::operator= ( const DomainControl other)
delete

◆ restore()

void geopm::DomainControl::restore ( void  )
overridevirtual

Restore the setting stored by save().

Implements geopm::Control.

◆ save()

void geopm::DomainControl::save ( void  )
overridevirtual

Store the current setting of the control for use by a future call to restore().

Implements geopm::Control.

◆ setup_batch()

void geopm::DomainControl::setup_batch ( void  )
overridevirtual

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.

Implements geopm::Control.

◆ write()

void geopm::DomainControl::write ( double  value)
overridevirtual

Write the value of the control without affecting any pushed batch controls.

Implements geopm::Control.


The documentation for this class was generated from the following files: