Loading...
Searching...
No Matches
Inheritance diagram for Execution::Clock:
Dataflow::Clock Execution::ManualClock::Clock

Public Member Functions

 Clock (const Execution::Context &ctx)
 
void play (const TimeVal &t)
 
void pause ()
 
void resume ()
 
void stop ()
 
virtual bool paused () const
 
virtual bool setStepping (bool stepping)
 Moves the execution under step control, or back to its own clock.
 
virtual bool stepping () const noexcept
 
virtual bool stepTo (double seconds)
 

Static Public Member Functions

static Clock * running (const score::Document &doc) noexcept
 The clock of the execution currently playing doc, if any.
 
static int64_t playCount () noexcept
 Incremented each time a clock starts playing.
 
static void requestStepping (const score::Document &doc, bool stepping)
 The next clock that plays doc starts stepping, until it stops.
 
static bool steppingRequested (const score::Document &doc) noexcept
 

Public Attributes

const Context & context
 
std::shared_ptr< BaseScenarioElement > scenario
 

Protected Member Functions

virtual void play_impl (const TimeVal &t)=0
 
virtual void pause_impl ()=0
 
virtual void resume_impl ()=0
 
virtual void stop_impl ()=0
 

Member Function Documentation

◆ setStepping()

bool Execution::Clock::setStepping ( bool  stepping)
virtual

Moves the execution under step control, or back to its own clock.

Reimplemented in Dataflow::Clock.

◆ stepTo()

bool Execution::Clock::stepTo ( double  seconds)
virtual

Runs the execution synchronously until seconds have been executed since the clock started stepping.

Reimplemented in Dataflow::Clock.


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