gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ProbePointArg< T > Class Template Reference

ProbePointArg generates a point for the class of Arg. More...

#include <thermal_domain.hh>

Inheritance diagram for ProbePointArg< T >:
ProbePoint

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
 

Detailed Description

template<class T>
class ProbePointArg< T >

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.

Constructor & Destructor Documentation

template<class T>
ProbePointArg< T >::ProbePointArg ( ProbeManager manager,
std::string  name 
)
inline

Definition at line 257 of file probe.hh.

Member Function Documentation

template<class T>
void ProbePointArg< T >::addListener ( ProbeListener l)
inlinevirtual

adds a ProbeListener to this ProbePoints notify list.

Parameters
lthe ProbeListener to add to the notify list.

Implements ProbePoint.

Definition at line 266 of file probe.hh.

template<class T>
void ProbePointArg< T >::notify ( const Arg &  arg)
inline

called at the ProbePoint call site, passes arg to each listener.

Parameters
argthe argument to pass to each listener.

Definition at line 288 of file probe.hh.

Referenced by ThermalDomain::emitUpdate().

template<class T>
void ProbePointArg< T >::removeListener ( ProbeListener l)
inlinevirtual

remove a ProbeListener from this ProbePoints notify list.

Parameters
lthe ProbeListener to remove from the notify list.

Implements ProbePoint.

Definition at line 278 of file probe.hh.

Member Data Documentation

template<class T>
std::vector<ProbeListenerArgBase<Arg> *> ProbePointArg< T >::listeners
private

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

Generated on Fri Jun 9 2017 13:04:17 for gem5 by doxygen 1.8.6