12 #ifndef SST_CORE_CLOCK_H
13 #define SST_CORE_CLOCK_H
15 #include "sst/core/action.h"
16 #include "sst/core/ssthandler.h"
21 #define _CLE_DBG(fmt, args...) __DBG(DBG_CLOCK, Clock, fmt, ##args)
67 template <
typename classT,
typename dataT =
void>
84 std::string
toString()
const override;
88 typedef std::vector<Clock::HandlerBase*> StaticHandlerMap_t;
92 void execute(
void)
override;
96 StaticHandlerMap_t staticHandlerMap;
105 #endif // SST_CORE_CLOCK_H
An Action is a schedulable Activity which is not an Event.
Definition: action.h:26
Definition: ssthandler.h:100
Event Handler class with user-data argument.
Definition: ssthandler.h:115
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:26
Cycle_t getNextCycle()
Return the time of the next clock tick.
Definition: clock.cc:62
bool registerHandler(Clock::HandlerBase *handler)
Add a handler to be called on this clock's tick.
Definition: clock.cc:36
A Clock class.
Definition: clock.h:32
std::string toString() const override
Get a string represenation of the event.
Definition: clock.cc:120
bool unregisterHandler(Clock::HandlerBase *handler, bool &empty)
Remove a handler from the list of handlers to be called on the clock tick.
Definition: clock.cc:44
void schedule()
Activates this clock object, by inserting into the simulation's timeVortex for future execution...
Definition: clock.cc:98