SimEventQueueDebug Class Reference

Debug version of SimEventQueue. More...

#include <Simulation/SimEventQueueDebug.H>

Inheritance diagram for SimEventQueueDebug:
Inheritance graph
[legend]
Collaboration diagram for SimEventQueueDebug:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimEventQueueDebug (OptionManager &mgr, const std::string &descrName="Simulation Event Queue Debug", const std::string &tagName="SimEventQueue", const SimTime starttime=SimTime::ZERO())
 Constructor.
virtual ~SimEventQueueDebug ()
 Destructor.
virtual SimStatus evolve ()
 Increment the master clock and delete old events.
virtual void clear ()
 Erase the entire queue.
virtual void prune (const SimTime &tt)
 Erase all events with time <= tt.
virtual void resetTime (const SimTime &tim)
 Reset the time to the given value and erase the entire queue.

Protected Member Functions

virtual void postHelper (const std::type_info &etype, const rutz::shared_ptr< SimEvent > &e)
 This is called by post().
virtual void checkHelper (const std::type_info &etype, const rutz::shared_ptr< SimEvent > &e, const SimModule *caller, const SimEventQueueFlag flags, const SimModule *eventsrc)
 this is called by check()

Detailed Description

Debug version of SimEventQueue.

This version just posts a number of messages about the queue when events are posted, retrieved, when the queue evolves, etc.

Definition at line 46 of file SimEventQueueDebug.H.


Constructor & Destructor Documentation

SimEventQueueDebug::SimEventQueueDebug ( OptionManager mgr,
const std::string descrName = "Simulation Event Queue Debug",
const std::string tagName = "SimEventQueue",
const SimTime  starttime = SimTime::ZERO() 
)

Constructor.

Definition at line 44 of file SimEventQueueDebug.C.

SimEventQueueDebug::~SimEventQueueDebug (  )  [virtual]

Destructor.

Definition at line 52 of file SimEventQueueDebug.C.


Member Function Documentation

void SimEventQueueDebug::checkHelper ( const std::type_info &  etype,
const rutz::shared_ptr< SimEvent > &  e,
const SimModule caller,
const SimEventQueueFlag  flags,
const SimModule eventsrc 
) [protected, virtual]

this is called by check()

Reimplemented from SimEventQueue.

Definition at line 113 of file SimEventQueueDebug.C.

References rutz::demangled_name(), ModelComponent::descriptiveName(), and rutz::shared_ptr< T >::is_valid().

void SimEventQueueDebug::clear ( void   )  [virtual]

Erase the entire queue.

In addition to the normal behavior, we report.

Reimplemented from SimEventQueue.

Definition at line 83 of file SimEventQueueDebug.C.

SimStatus SimEventQueueDebug::evolve (  )  [virtual]

Increment the master clock and delete old events.

In addition to the normal behavior, we dump the queue.

Reimplemented from SimEventQueue.

Definition at line 56 of file SimEventQueueDebug.C.

References SimTime::msecs(), ModelComponent::stop(), and SimEventQueue::t.

void SimEventQueueDebug::postHelper ( const std::type_info &  etype,
const rutz::shared_ptr< SimEvent > &  e 
) [protected, virtual]

This is called by post().

Reimplemented from SimEventQueue.

Definition at line 104 of file SimEventQueueDebug.C.

References SimTime::msecs(), and SimEventQueue::t.

void SimEventQueueDebug::prune ( const SimTime tt  )  [virtual]

Erase all events with time <= tt.

In addition to the normal behavior, we report.

Reimplemented from SimEventQueue.

Definition at line 97 of file SimEventQueueDebug.C.

References SimTime::msecs().

void SimEventQueueDebug::resetTime ( const SimTime tim  )  [virtual]

Reset the time to the given value and erase the entire queue.

In addition to the normal behavior, we report.

Reimplemented from SimEventQueue.

Definition at line 90 of file SimEventQueueDebug.C.

References SimTime::msecs().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:48 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3