|
gem5
v22.1.0.0
|
ProbeListenerArg generates a listener for the class of Arg and the class type T which is the class containing the function that notify will call. More...
#include <probe.hh>
Public Member Functions | |
| ProbeListenerArg (T *obj, const std::string &name, void(T::*func)(const Arg &)) | |
| void | notify (const Arg &val) override |
| called when the ProbePoint calls notify. More... | |
Public Member Functions inherited from gem5::ProbeListenerArgBase< Arg > | |
| ProbeListenerArgBase (ProbeManager *pm, const std::string &name) | |
Public Member Functions inherited from gem5::ProbeListener | |
| ProbeListener (ProbeManager *manager, const std::string &name) | |
| virtual | ~ProbeListener () |
| ProbeListener (const ProbeListener &other)=delete | |
| ProbeListener & | operator= (const ProbeListener &other)=delete |
| ProbeListener (ProbeListener &&other) noexcept=delete | |
| ProbeListener & | operator= (ProbeListener &&other) noexcept=delete |
Private Attributes | |
| T * | object |
| void(T::* | function )(const Arg &) |
Additional Inherited Members | |
Protected Attributes inherited from gem5::ProbeListener | |
| ProbeManager *const | manager |
| const std::string | name |
ProbeListenerArg generates a listener for the class of Arg and the class type T which is the class containing the function that notify will call.
Note that the function is passed as a pointer on construction.
|
inline |
| obj | the class of type Tcontaining the method to call on notify. |
| name | the name of the ProbePoint to add this listener to. |
| func | a pointer to the function on obj (called on notify). |
|
inlineoverridevirtual |
called when the ProbePoint calls notify.
This is a shim through to the function passed during construction.
| val | the argument value to pass. |
Implements gem5::ProbeListenerArgBase< Arg >.
Definition at line 252 of file probe.hh.
References gem5::X86ISA::val.
|
private |
|
private |