openMSX
Public Member Functions | List of all members
openmsx::SpeedManager Class Referencefinal

Manages the desired ratio between EmuTime and real time. More...

#include <SpeedManager.hh>

Inheritance diagram for openmsx::SpeedManager:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SpeedManager:
Collaboration graph
[legend]

Public Member Functions

 SpeedManager (CommandController &commandController)
 
 ~SpeedManager ()
 
double getSpeed () const
 Return the desired ratio between EmuTime and real time.
 
auto & getSpeedSetting ()
 
auto & getFastForwardSetting ()
 
auto & getFastForwardSpeedSetting ()
 
- Public Member Functions inherited from openmsx::Subject< SpeedManager >
 Subject (const Subject &)=delete
 
 Subject (Subject &&)=delete
 
Subjectoperator= (const Subject &)=delete
 
Subjectoperator= (Subject &&)=delete
 
void attach (Observer< SpeedManager > &observer)
 
void detach (Observer< SpeedManager > &observer)
 
bool anyObservers () const
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Subject< SpeedManager >
 Subject ()=default
 
 ~Subject ()
 
void notify () const
 

Detailed Description

Manages the desired ratio between EmuTime and real time.

Currently this just republishes the value of the "speed" setting.

Definition at line 16 of file SpeedManager.hh.

Constructor & Destructor Documentation

◆ SpeedManager()

openmsx::SpeedManager::SpeedManager ( CommandController commandController)
explicit

Definition at line 7 of file SpeedManager.cc.

References openmsx::Subject< T >::attach().

◆ ~SpeedManager()

openmsx::SpeedManager::~SpeedManager ( )

Definition at line 26 of file SpeedManager.cc.

References openmsx::Subject< T >::detach().

Member Function Documentation

◆ getFastForwardSetting()

auto & openmsx::SpeedManager::getFastForwardSetting ( )
inline

Definition at line 29 of file SpeedManager.hh.

◆ getFastForwardSpeedSetting()

auto & openmsx::SpeedManager::getFastForwardSpeedSetting ( )
inline

Definition at line 30 of file SpeedManager.hh.

◆ getSpeed()

double openmsx::SpeedManager::getSpeed ( ) const
inline

◆ getSpeedSetting()

auto & openmsx::SpeedManager::getSpeedSetting ( )
inline

Definition at line 28 of file SpeedManager.hh.


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