openMSX
Classes | Public Member Functions | Static Public Attributes | Friends | List of all members
openmsx::ReverseManager Class Referencefinal

#include <ReverseManager.hh>

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

Public Member Functions

 ReverseManager (MSXMotherBoard &motherBoard)
 
 ~ReverseManager ()
 
void registerKeyboard (Keyboard &keyboard_)
 
void registerEventDelay (EventDelay &eventDelay_)
 
void setReRecordCount (unsigned count)
 
bool isReplaying () const
 
void stopReplay (EmuTime::param time) noexcept
 
template<typename T , typename... Args>
StateChangerecord (EmuTime::param time, Args &&...args)
 
bool isCollecting () const
 
bool isViewOnlyMode () const
 
double getBegin () const
 
double getEnd () const
 
double getCurrent () const
 
std::vector< double > getSnapshotTimes () const
 

Static Public Attributes

static constexpr std::string_view REPLAY_DIR = "replays"
 
static constexpr std::string_view REPLAY_EXTENSION = ".omr"
 

Friends

struct Replay
 

Detailed Description

Definition at line 29 of file ReverseManager.hh.

Constructor & Destructor Documentation

◆ ReverseManager()

openmsx::ReverseManager::ReverseManager ( MSXMotherBoard motherBoard)
explicit

◆ ~ReverseManager()

openmsx::ReverseManager::~ReverseManager ( )

Member Function Documentation

◆ getBegin()

double openmsx::ReverseManager::getBegin ( ) const

Definition at line 206 of file ReverseManager.cc.

References begin(), and isCollecting().

◆ getCurrent()

double openmsx::ReverseManager::getCurrent ( ) const

Definition at line 217 of file ReverseManager.cc.

References isCollecting().

◆ getEnd()

double openmsx::ReverseManager::getEnd ( ) const

Definition at line 212 of file ReverseManager.cc.

References end(), and isCollecting().

◆ getSnapshotTimes()

std::vector< double > openmsx::ReverseManager::getSnapshotTimes ( ) const

Definition at line 222 of file ReverseManager.cc.

References to_vector(), and view::transform().

◆ isCollecting()

bool openmsx::ReverseManager::isCollecting ( ) const
inline

◆ isReplaying()

bool openmsx::ReverseManager::isReplaying ( ) const

◆ isViewOnlyMode()

bool openmsx::ReverseManager::isViewOnlyMode ( ) const

◆ record()

template<typename T , typename... Args>
StateChange & openmsx::ReverseManager::record ( EmuTime::param  time,
Args &&...  args 
)
inline

Definition at line 63 of file ReverseManager.hh.

References isReplaying().

Referenced by openmsx::StateChangeDistributor::distributeNew().

◆ registerEventDelay()

void openmsx::ReverseManager::registerEventDelay ( EventDelay eventDelay_)
inline

Definition at line 48 of file ReverseManager.hh.

Referenced by openmsx::EventDelay::EventDelay().

◆ registerKeyboard()

void openmsx::ReverseManager::registerKeyboard ( Keyboard keyboard_)
inline

Definition at line 42 of file ReverseManager.hh.

Referenced by openmsx::Keyboard::Keyboard().

◆ setReRecordCount()

void openmsx::ReverseManager::setReRecordCount ( unsigned  count)
inline

Definition at line 55 of file ReverseManager.hh.

Referenced by openmsx::MSXMotherBoard::serialize().

◆ stopReplay()

void openmsx::ReverseManager::stopReplay ( EmuTime::param  time)
noexcept

Definition at line 903 of file ReverseManager.cc.

References begin(), end(), and ranges::find_if().

Referenced by openmsx::StateChangeDistributor::stopReplay().

Friends And Related Symbol Documentation

◆ Replay

friend struct Replay
friend

Definition at line 173 of file ReverseManager.hh.

Member Data Documentation

◆ REPLAY_DIR

constexpr std::string_view openmsx::ReverseManager::REPLAY_DIR = "replays"
staticconstexpr

Definition at line 32 of file ReverseManager.hh.

Referenced by openmsx::ImGuiReverseBar::showMenu().

◆ REPLAY_EXTENSION

constexpr std::string_view openmsx::ReverseManager::REPLAY_EXTENSION = ".omr"
staticconstexpr

Definition at line 33 of file ReverseManager.hh.

Referenced by openmsx::ImGuiReverseBar::showMenu().


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