openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::SimpleDebuggable Class Reference

#include <SimpleDebuggable.hh>

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

Public Member Functions

unsigned getSize () const final
 
std::string_view getDescription () const final
 
byte read (unsigned address) override
 
virtual byte read (unsigned address, EmuTime::param time)
 
void write (unsigned address, byte value) override
 
virtual void write (unsigned address, byte value, EmuTime::param time)
 
const std::string & getName () const
 
MSXMotherBoardgetMotherBoard () const
 
- Public Member Functions inherited from openmsx::Debuggable
 Debuggable (const Debuggable &)=delete
 
 Debuggable (Debuggable &&)=delete
 
Debuggableoperator= (const Debuggable &)=delete
 
Debuggableoperator= (Debuggable &&)=delete
 

Protected Member Functions

 SimpleDebuggable (MSXMotherBoard &motherBoard, std::string name, static_string_view description, unsigned size)
 
 ~SimpleDebuggable ()
 
- Protected Member Functions inherited from openmsx::Debuggable
 Debuggable ()=default
 
 ~Debuggable ()=default
 

Detailed Description

Definition at line 12 of file SimpleDebuggable.hh.

Constructor & Destructor Documentation

◆ SimpleDebuggable()

openmsx::SimpleDebuggable::SimpleDebuggable ( MSXMotherBoard motherBoard,
std::string  name,
static_string_view  description,
unsigned  size 
)
protected

◆ ~SimpleDebuggable()

openmsx::SimpleDebuggable::~SimpleDebuggable ( )
protected

Member Function Documentation

◆ getDescription()

std::string_view openmsx::SimpleDebuggable::getDescription ( ) const
finalvirtual

Implements openmsx::Debuggable.

Definition at line 29 of file SimpleDebuggable.cc.

◆ getMotherBoard()

MSXMotherBoard & openmsx::SimpleDebuggable::getMotherBoard ( ) const
inline

Definition at line 24 of file SimpleDebuggable.hh.

Referenced by openmsx::JoyPortDebuggable::read().

◆ getName()

const std::string & openmsx::SimpleDebuggable::getName ( ) const
inline

Definition at line 23 of file SimpleDebuggable.hh.

◆ getSize()

unsigned openmsx::SimpleDebuggable::getSize ( ) const
finalvirtual

Implements openmsx::Debuggable.

Definition at line 24 of file SimpleDebuggable.cc.

◆ read() [1/2]

byte openmsx::SimpleDebuggable::read ( unsigned  address)
overridevirtual

Implements openmsx::Debuggable.

Definition at line 34 of file SimpleDebuggable.cc.

References openmsx::MSXMotherBoard::getCurrentTime(), and read().

Referenced by read().

◆ read() [2/2]

byte openmsx::SimpleDebuggable::read ( unsigned  address,
EmuTime::param  time 
)
virtual

Reimplemented in openmsx::JoyPortDebuggable.

Definition at line 39 of file SimpleDebuggable.cc.

References UNREACHABLE.

◆ write() [1/2]

void openmsx::SimpleDebuggable::write ( unsigned  address,
byte  value 
)
overridevirtual

Implements openmsx::Debuggable.

Definition at line 44 of file SimpleDebuggable.cc.

References openmsx::MSXMotherBoard::getCurrentTime(), and write().

Referenced by write().

◆ write() [2/2]

void openmsx::SimpleDebuggable::write ( unsigned  address,
byte  value,
EmuTime::param  time 
)
virtual

Definition at line 49 of file SimpleDebuggable.cc.


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