The Sparta Modeling Framework
|
A helper class of GlobalEvent. More...
#include <GlobalEvent.hpp>
Public Member Functions | |
GlobalEventProxy (const GlobalEventProxy &)=default | |
GlobalEventProxy & | operator= (const GlobalEventProxy &)=default |
template<SchedulingPhase sched_phase_T = SchedulingPhase::Update> | |
GlobalEventProxy (const utils::LifeTracker< SpartaHandler > &handler) | |
void | operator() (void) const |
function call operator of GlobalEventProxy | |
const SchedulingPhase & | getSchedulingPhase () const |
A helper class of GlobalEvent.
GlobalEventProxy itself monitors a event handler and remembers its scheduling phase. It triggers the event callback only when it still exists (with the help of std::weak_ptr) It appears as an "event" payload of sparta::PhasedPayloadEvent in the sparta::Scheduler.
Definition at line 32 of file GlobalEvent.hpp.
|
inline |
Definition at line 40 of file GlobalEvent.hpp.
|
inline |
Definition at line 59 of file GlobalEvent.hpp.
|
inline |
function call operator of GlobalEventProxy
It supports the "dynamic" event scheduling semantic provided by sparta::GlobalEvent by triggering the event callback only when it still exists (with the help of std::weak_ptr)
Definition at line 51 of file GlobalEvent.hpp.