@@ -185,8 +185,9 @@ StatisticProcessingEngine::finalizeInitialization()
185185 if ( g.outputFreq .getValue () != 0 ) {
186186 Simulation_impl::getSimulation ()->registerClock (
187187 g.outputFreq ,
188- new Clock::Handler<StatisticProcessingEngine, StatisticGroup*>(
189- this , &StatisticProcessingEngine::handleGroupClockEvent, &g),
188+ new Clock::Handler2<
189+ StatisticProcessingEngine, &StatisticProcessingEngine::handleGroupClockEvent, StatisticGroup*>(
190+ this , &g),
190191 STATISTICCLOCKPRIORITY);
191192 }
192193 }
@@ -304,8 +305,9 @@ StatisticProcessingEngine::addPeriodicBasedStatistic(const UnitAlgebra& freq, St
304305 if ( 0 != freq.getValue () ) {
305306
306307 // This tcFactor is not found in the map, so create a new clock handler.
307- ClockHandler = new Clock::Handler<StatisticProcessingEngine, SimTime_t>(
308- this , &StatisticProcessingEngine::handleStatisticEngineClockEvent, tcFactor);
308+ ClockHandler = new Clock::Handler2<
309+ StatisticProcessingEngine, &StatisticProcessingEngine::handleStatisticEngineClockEvent, SimTime_t>(
310+ this , tcFactor);
309311
310312 // Set the clock priority so that normal clocks events will occur before
311313 // this clock event.
@@ -357,8 +359,9 @@ StatisticProcessingEngine::setStatisticStartTime(StatisticBase* stat)
357359 // See if the map contains an entry for this factor
358360 if ( m_StartTimeMap.find (tcFactor) == m_StartTimeMap.end () ) {
359361 // This tcFactor is not found in the map, so create a new OneShot handler.
360- OneShot::HandlerBase* OneShotHandler = new OneShot::Handler<StatisticProcessingEngine, SimTime_t>(
361- this , &StatisticProcessingEngine::handleStatisticEngineStartTimeEvent, tcFactor);
362+ OneShot::HandlerBase* OneShotHandler = new OneShot::Handler2<
363+ StatisticProcessingEngine, &StatisticProcessingEngine::handleStatisticEngineStartTimeEvent, SimTime_t>(
364+ this , tcFactor);
362365
363366 // Set the OneShot priority so that normal events will occur before this event.
364367 sim->registerOneShot (startTime, OneShotHandler, STATISTICCLOCKPRIORITY);
@@ -393,8 +396,9 @@ StatisticProcessingEngine::setStatisticStopTime(StatisticBase* stat)
393396 // See if the map contains an entry for this factor
394397 if ( m_StopTimeMap.find (tcFactor) == m_StopTimeMap.end () ) {
395398 // This tcFactor is not found in the map, so create a new OneShot handler.
396- OneShot::HandlerBase* OneShotHandler = new OneShot::Handler<StatisticProcessingEngine, SimTime_t>(
397- this , &StatisticProcessingEngine::handleStatisticEngineStopTimeEvent, tcFactor);
399+ OneShot::HandlerBase* OneShotHandler = new OneShot::Handler2<
400+ StatisticProcessingEngine, &StatisticProcessingEngine::handleStatisticEngineStopTimeEvent, SimTime_t>(
401+ this , tcFactor);
398402
399403 // Set the OneShot priority so that normal events will occur before this event.
400404 sim->registerOneShot (stopTime, OneShotHandler, STATISTICCLOCKPRIORITY);
0 commit comments