gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
CallbackQueue Class Reference

#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...
 

Detailed Description

Definition at line 84 of file callback.hh.

Member Typedef Documentation

typedef std::list<Callback *> CallbackQueue::queue
protected

Simple typedef for the data structure that stores all of the callbacks.

Definition at line 91 of file callback.hh.

Constructor & Destructor Documentation

CallbackQueue::~CallbackQueue ( )

Definition at line 33 of file callback.cc.

References callbacks, and ArmISA::i.

Member Function Documentation

void CallbackQueue::add ( Callback callback)
inline

Add a callback to the end of the queue.

Parameters
callbackthe 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().

template<class T , void(T::*)() F>
void CallbackQueue::add ( T *  obj)
inline

Definition at line 114 of file callback.hh.

References add().

template<class T , void(T::*)() F>
void CallbackQueue::add ( T &  obj)
inline

Definition at line 121 of file callback.hh.

References add().

void CallbackQueue::clear ( )
inline

clear the callback queue

Definition at line 150 of file callback.hh.

References callbacks.

Referenced by doExitCleanup().

bool CallbackQueue::empty ( ) const
inline

Find out if there are any callbacks in the queue.

Definition at line 129 of file callback.hh.

References callbacks.

std::string CallbackQueue::name ( ) const
inline

Definition at line 100 of file callback.hh.

void CallbackQueue::process ( )
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().

Member Data Documentation

queue CallbackQueue::callbacks
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().


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

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