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

Helper template class to turn a simple class member function into a callback. More...

#include <callback.hh>

Inheritance diagram for MakeCallback< T, F >:
Callback

Public Member Functions

 MakeCallback (T *o, bool auto_destroy=false)
 
 MakeCallback (T &o, bool auto_destroy=false)
 
void process ()
 virtual process function that is invoked when the callback queue is executed. More...
 
- Public Member Functions inherited from Callback
virtual ~Callback ()
 virtualize the destructor to make sure that the correct one gets called. More...
 

Protected Member Functions

void autoDestruct ()
 

Protected Attributes

T * object
 
const bool autoDestroy
 

Detailed Description

template<class T, void(T::*)() F>
class MakeCallback< T, F >

Helper template class to turn a simple class member function into a callback.

Definition at line 64 of file callback.hh.

Constructor & Destructor Documentation

template<class T, void(T::*)() F>
MakeCallback< T, F >::MakeCallback ( T *  o,
bool  auto_destroy = false 
)
inline

Definition at line 73 of file callback.hh.

template<class T, void(T::*)() F>
MakeCallback< T, F >::MakeCallback ( T &  o,
bool  auto_destroy = false 
)
inline

Definition at line 77 of file callback.hh.

Member Function Documentation

template<class T, void(T::*)() F>
void MakeCallback< T, F >::autoDestruct ( )
inlineprotectedvirtual

Reimplemented from Callback.

Definition at line 70 of file callback.hh.

template<class T, void(T::*)() F>
void MakeCallback< T, F >::process ( )
inlinevirtual

virtual process function that is invoked when the callback queue is executed.

Implements Callback.

Definition at line 81 of file callback.hh.

Member Data Documentation

template<class T, void(T::*)() F>
const bool MakeCallback< T, F >::autoDestroy
protected
template<class T, void(T::*)() F>
T* MakeCallback< T, F >::object
protected

Definition at line 67 of file callback.hh.


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

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