gem5
|
ProbePointArg generates a point for the class of Arg. More...
#include <thermal_domain.hh>
Public Member Functions | |
ProbePointArg (ProbeManager *manager, std::string name) | |
void | addListener (ProbeListener *l) |
adds a ProbeListener to this ProbePoints notify list. More... | |
void | removeListener (ProbeListener *l) |
remove a ProbeListener from this ProbePoints notify list. More... | |
void | notify (const Arg &arg) |
called at the ProbePoint call site, passes arg to each listener. More... | |
Public Member Functions inherited from ProbePoint | |
ProbePoint (ProbeManager *manager, const std::string &name) | |
virtual | ~ProbePoint () |
std::string | getName () const |
Private Attributes | |
std::vector < ProbeListenerArgBase< Arg > * > | listeners |
The attached listeners. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ProbePoint | |
const std::string | name |
ProbePointArg generates a point for the class of Arg.
As ProbePointArgs talk directly to ProbeListenerArgs of the same type, we can store the vector of ProbeListeners as their Arg type (and not as base type).
Methods are provided to addListener, removeListener and notify.
Definition at line 52 of file thermal_domain.hh.
|
inline |
|
inlinevirtual |
adds a ProbeListener to this ProbePoints notify list.
l | the ProbeListener to add to the notify list. |
Implements ProbePoint.
|
inline |
called at the ProbePoint call site, passes arg to each listener.
arg | the argument to pass to each listener. |
Definition at line 288 of file probe.hh.
Referenced by ThermalDomain::emitUpdate().
|
inlinevirtual |
remove a ProbeListener from this ProbePoints notify list.
l | the ProbeListener to remove from the notify list. |
Implements ProbePoint.
|
private |
The attached listeners.
Definition at line 254 of file probe.hh.
Referenced by ProbePointArg< Packet >::addListener(), ProbePointArg< Packet >::notify(), and ProbePointArg< Packet >::removeListener().