User Manual, Developers Guide and API Documentation

wns::events::scheduler::Map Class Reference

Implementation based on std::map.

#include <events/scheduler/Map.hpp>

Inheritance diagram for wns::events::scheduler::Map:

Inheritance graph
[legend]
Collaboration diagram for wns::events::scheduler::Map:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Map ()
virtual ~Map ()

Protected Types

typedef
wns::container::FastList
< EventPtr
DiscreteTimeContainer
typedef std::map
< wns::simulator::Time,
DiscreteTimeContainer * > 
EventContainer
typedef wns::SmartPtr< EventEventPtr

Protected Member Functions

virtual void onNewSimTime (const wns::simulator::Time &)
 This is called if the sim time will change.
NVI implementation
virtual void doCancelEvent (const IEventPtr &event)
virtual void doDequeueCommand (const ICommandPtr &command)
virtual wns::simulator::Time doGetTime () const
virtual bool doProcessOneEvent ()
virtual ICommandPtr doQueueCommand (const Callable &callable)
virtual void doReset ()
virtual IEventPtr doSchedule (const Callable &callable, wns::simulator::Time at)
virtual IEventPtr doScheduleNow (const Callable &callable)
virtual size_t doSize () const
virtual void doStart ()
virtual void doStop ()
Internal helpers
void doCancelMapEvent (const EventPtr &event)
void doCancelMapEventCalledFromMapEvent (const EventPtr &event)
Scheduler observation
virtual void sendAddEventNotification ()
virtual void sendCancelEventNotification ()
virtual void sendProcessOneEventNotification ()
virtual void sendScheduleDelayNotification ()
virtual void sendScheduleNotification ()
virtual void sendScheduleNowNotification ()

Protected Attributes

CommandQueue commandQueue_
EventContainer events_
EventContainer::iterator nowItr_
wns::simulator::Time simTime_
bool stop_

Classes

class  Event


Detailed Description

Definition at line 44 of file Map.hpp.


Member Typedef Documentation

Definition at line 230 of file Map.hpp.

Definition at line 235 of file Map.hpp.

Definition at line 146 of file Map.hpp.


Constructor & Destructor Documentation

Map::Map (  ) 

Definition at line 38 of file Map.cpp.

Map::~Map (  )  [virtual]

Definition at line 51 of file Map.cpp.


Member Function Documentation

void Map::doCancelEvent ( const IEventPtr event  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 130 of file Map.cpp.

void Map::doCancelMapEvent ( const EventPtr event  )  [protected]

Definition at line 105 of file Map.cpp.

void Map::doCancelMapEventCalledFromMapEvent ( const EventPtr event  )  [protected]

Definition at line 96 of file Map.cpp.

void Map::doDequeueCommand ( const ICommandPtr command  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 277 of file Map.cpp.

wns::simulator::Time Map::doGetTime (  )  const [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 253 of file Map.cpp.

bool Map::doProcessOneEvent (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 138 of file Map.cpp.

wns::events::scheduler::ICommandPtr Map::doQueueCommand ( const Callable callable  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 271 of file Map.cpp.

void Map::doReset (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Reimplemented in wns::events::scheduler::RealTime.

Definition at line 188 of file Map.cpp.

wns::events::scheduler::IEventPtr Map::doSchedule ( const Callable callable,
wns::simulator::Time  at 
) [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 73 of file Map.cpp.

wns::events::scheduler::IEventPtr Map::doScheduleNow ( const Callable callable  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 61 of file Map.cpp.

size_t Map::doSize (  )  const [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 202 of file Map.cpp.

void Map::doStart (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Reimplemented in wns::events::scheduler::RealTime.

Definition at line 259 of file Map.cpp.

void Map::doStop (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 265 of file Map.cpp.

virtual void wns::events::scheduler::Map::onNewSimTime ( const wns::simulator::Time  )  [inline, protected, virtual]

Reimplemented in wns::events::scheduler::RealTime.

Definition at line 224 of file Map.hpp.

void Map::sendAddEventNotification (  )  [protected, virtual]

Definition at line 247 of file Map.cpp.

void Map::sendCancelEventNotification (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 223 of file Map.cpp.

void Map::sendProcessOneEventNotification (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 217 of file Map.cpp.

void Map::sendScheduleDelayNotification (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 241 of file Map.cpp.

void Map::sendScheduleNotification (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 229 of file Map.cpp.

void Map::sendScheduleNowNotification (  )  [protected, virtual]

Implements wns::events::scheduler::Interface.

Definition at line 235 of file Map.cpp.


Member Data Documentation

Definition at line 245 of file Map.hpp.

Definition at line 237 of file Map.hpp.

EventContainer::iterator wns::events::scheduler::Map::nowItr_ [protected]

Definition at line 241 of file Map.hpp.

Definition at line 228 of file Map.hpp.

Definition at line 243 of file Map.hpp.


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

Generated on Sat May 26 03:32:53 2012 for openWNS by  doxygen 1.5.5