gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
PowerModel::ThermalProbeListener Class Reference

Listener class to catch thermal events. More...

#include <power_model.hh>

Inheritance diagram for PowerModel::ThermalProbeListener:
ProbeListenerArgBase< double > ProbeListener

Public Member Functions

 ThermalProbeListener (PowerModel &_pm, ProbeManager *pm, const std::string &name)
 
void notify (const double &temp)
 
- Public Member Functions inherited from ProbeListenerArgBase< double >
 ProbeListenerArgBase (ProbeManager *pm, const std::string &name)
 
- Public Member Functions inherited from ProbeListener
 ProbeListener (ProbeManager *manager, const std::string &name)
 
virtual ~ProbeListener ()
 

Protected Attributes

PowerModelpm
 
- Protected Attributes inherited from ProbeListener
ProbeManager *const manager
 
const std::string name
 

Detailed Description

Listener class to catch thermal events.

Definition at line 163 of file power_model.hh.

Constructor & Destructor Documentation

◆ ThermalProbeListener()

PowerModel::ThermalProbeListener::ThermalProbeListener ( PowerModel _pm,
ProbeManager pm,
const std::string &  name 
)
inline

Definition at line 166 of file power_model.hh.

Member Function Documentation

◆ notify()

void PowerModel::ThermalProbeListener::notify ( const double &  temp)
inlinevirtual

Implements ProbeListenerArgBase< double >.

Definition at line 170 of file power_model.hh.

References pm, and PowerModel::thermalUpdateCallback().

Member Data Documentation

◆ pm

PowerModel& PowerModel::ThermalProbeListener::pm
protected

Definition at line 176 of file power_model.hh.

Referenced by notify().


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

Generated on Wed Sep 30 2020 14:02:29 for gem5 by doxygen 1.8.17