gem5
|
#include <callback.hh>
Public Member Functions | |
~CallbackQueue () | |
std::string | name () const |
void | add (Callback *callback) |
Add a callback to the end of the queue. More... | |
template<class T , void(T::*)() F> | |
void | add (T *obj) |
template<class T , void(T::*)() F> | |
void | add (T &obj) |
bool | empty () const |
Find out if there are any callbacks in the queue. More... | |
void | process () |
process all callbacks More... | |
void | clear () |
clear the callback queue More... | |
Protected Types | |
typedef std::list< Callback * > | queue |
Simple typedef for the data structure that stores all of the callbacks. More... | |
Protected Attributes | |
queue | callbacks |
List of all callbacks. More... | |
Definition at line 84 of file callback.hh.
|
protected |
Simple typedef for the data structure that stores all of the callbacks.
Definition at line 91 of file callback.hh.
CallbackQueue::~CallbackQueue | ( | ) |
Definition at line 33 of file callback.cc.
|
inline |
Add a callback to the end of the queue.
callback | the callback to be added to the queue |
Definition at line 107 of file callback.hh.
References callbacks.
Referenced by add(), Stats::registerDumpCallback(), registerExitCallback(), and Stats::registerResetCallback().
|
inline |
Definition at line 114 of file callback.hh.
References add().
|
inline |
Definition at line 121 of file callback.hh.
References add().
|
inline |
clear the callback queue
Definition at line 150 of file callback.hh.
References callbacks.
Referenced by doExitCleanup().
|
inline |
Find out if there are any callbacks in the queue.
Definition at line 129 of file callback.hh.
References callbacks.
|
inline |
Definition at line 100 of file callback.hh.
|
inline |
process all callbacks
Definition at line 135 of file callback.hh.
References callbacks, and ArmISA::i.
Referenced by doExitCleanup(), Stats::processDumpQueue(), and Stats::processResetQueue().
|
protected |
List of all callbacks.
To be called in fifo order.
Definition at line 96 of file callback.hh.
Referenced by add(), clear(), empty(), process(), and ~CallbackQueue().