gem5
|
Helper template class to turn a simple class member function into a callback. More...
#include <callback.hh>
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 |
Helper template class to turn a simple class member function into a callback.
Definition at line 64 of file callback.hh.
|
inline |
Definition at line 73 of file callback.hh.
|
inline |
Definition at line 77 of file callback.hh.
|
inlineprotectedvirtual |
Reimplemented from Callback.
Definition at line 70 of file callback.hh.
|
inlinevirtual |
virtual process function that is invoked when the callback queue is executed.
Implements Callback.
Definition at line 81 of file callback.hh.
|
protected |
Definition at line 68 of file callback.hh.
Referenced by MakeCallback< VirtIOConsole::VirtIOConsole::TermRecvQueue,&VirtIOConsole::VirtIOConsole::TermRecvQueue::trySend >::autoDestruct().
|
protected |
Definition at line 67 of file callback.hh.