SST  15.1.0
StructuralSimulationToolkit
SST::Core::OneShotManager Class Reference

Manages the OneShot actions for the core. More...

#include <oneshotManager.h>

Public Member Functions

 OneShotManager (Simulation_impl *sim)
 Create a new One Shot for a specified time that will callback the handler function. More...
 
template<class classT , auto funcT, typename dataT >
void registerRelativeHandler (SimTime_t trigger_time, int priority, classT *obj, dataT metadata)
 Add a handler to be called on this OneShot Event.
 
template<class classT , auto funcT>
void registerRelativeHandler (SimTime_t trigger_time, int priority, classT *obj)
 Add a handler to be called on this OneShot Event.
 
template<class classT , auto funcT, typename dataT >
void registerAbsoluteHandler (SimTime_t trigger_time, int priority, classT *obj, dataT metadata)
 Add a handler to be called on this OneShot Event.
 
template<class classT , auto funcT>
void registerAbsoluteHandler (SimTime_t trigger_time, int priority, classT *obj)
 Add a handler to be called on this OneShot Event.
 

Friends

class OneShot
 

Detailed Description

Manages the OneShot actions for the core.

This allows handlers to be registered with the core that will be called at a specific time and priority.

Constructor & Destructor Documentation

◆ OneShotManager()

SST::Core::OneShotManager::OneShotManager ( Simulation_impl sim)

Create a new One Shot for a specified time that will callback the handler function.

Note: OneShot cannot be canceled, and will always callback after the timedelay.


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